File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed
Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ apiVersion: v1
22appVersion : 0.3.0
33description : A Helm chart for k8s bastion
44name : k8s-ssh-bastion
5- version : 0.3.5
5+ version : 0.3.6
Original file line number Diff line number Diff line change 4848
4949 mkdir -p /run/sshd
5050
51+ {{- with .Values.initscripts }}
52+ {{- range $key, $value := . }}
53+ {{ $key }}
54+ {{- end }}
55+ {{- end }}
56+
5157 /usr/sbin/sshd -D -e -E /proc/1/fd/1
5258 lifecycle : {{ .Values.lifecycle | toJson }}
5359 ports :
6167 mountPath : /etc/ssh
6268 - name : sshd-configs-origin
6369 mountPath : /etc/ssh_origin
70+ - name : usr-share-initscripts
71+ mountPath : /usr/share/initscripts
6472 resources :
6573{{ toYaml .Values.resources | indent 12 }}
6674 hostNetwork : {{ .Values.hostNetwork }}
8492 - name : sshd-configs-origin
8593 configMap :
8694 name : {{ .Release.Name }}-etc-ssh-origin
95+ - name : usr-share-startup
96+ configMap :
97+ name : {{ .Release.Name }}-usr-share-initscripts
98+ defaultMode : 0755
8799---
88100apiVersion : v1
89101kind : ConfigMap
@@ -100,6 +112,15 @@ metadata:
100112data :
101113{{ tpl (toYaml .Values.ssh) $ | indent 2 }}
102114
115+ ---
116+ # Additional startup commands
117+ apiVersion : v1
118+ kind : ConfigMap
119+ metadata :
120+ name : {{ .Release.Name }}-usr-share-initscripts
121+ data :
122+ {{ tpl (toYaml .Values.initscripts) $ | indent 2 }}
123+
103124---
104125# Used to store ssh host keys & other stuff
105126apiVersion : v1
Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ topologySpreadConstraints:
5656
5757storageClass : " efs"
5858
59+ initscripts : {}
60+ # install-tools.sh: |
61+ # #!/bin/bash
62+ # echo do something
63+
5964# Override files under /etc/ssh
6065ssh :
6166 banner : |
You can’t perform that action at this time.
0 commit comments