Add commented out sshdir changes into helm-operator-deployment.yaml.
What does this MR do?
Adds the changes for the sshdir configmap and volume into the helm-operator-deployment.yaml file
Comments the sshdir configmap and volume
@@ -14,6 +14,14 @@ spec:
spec:
serviceAccount: flux
volumes:
+ # The following volume is for using a customised known_hosts
+ # file file, which you will need to do if you host your own git
+ # repo rather than using github or the like. You'll also need to
+ # mount it into the container, below.
+ # - name: sshdir
+ # configMap:
+ # name: flux-ssh-config
+ # defaultMode: 0600
- name: git-key
secret:
secretName: flux-git-deploy
@@ -26,6 +34,12 @@ spec:
image: quay.io/weaveworks/helm-operator:0.1.0-alpha
imagePullPolicy: IfNotPresent
volumeMounts:
+ # Include this if you need to mount a customised known_hosts
+ # file; you'll also need the volume declared above.
+ # - name: sshdir
+ # mountPath: /root/.ssh/known_hosts
+ # subPath: known_hosts
+ # readOnly: true
- name: git-key
mountPath: /etc/fluxd/ssh
readOnly: true # this will be the case perforce in K8s >=1.10
