ci: Mount ssh_known_hosts in client build pod
dustin/sshca/pipeline/head This commit looks good Details

Apparently, the although the tooltip says " Volumes get mounted in all
containers with the specified mount path," volumes defined in the
default Pod Template in the Jenkins Kubernetes Cloud configuration
actually only get mounted in the JNLP agent container.  Containers
defined in the pod template YAML document are not included in this
interpretation of "all."
Dustin 2023-11-10 12:06:51 -06:00
parent 2243e9e41d
commit eec0bfc83c
1 changed files with 8 additions and 0 deletions

View File

@ -6,4 +6,12 @@ spec:
- cat
stdin: true
tty: true
volumeMounts:
- mountPath: /etc/ssh/ssh_known_hosts
name: ssh-known-hosts
subPath: ssh_known_hosts
hostUsers: false
volumes:
- name: ssh-known-hosts
configMap:
name: ssh-known-hosts