Merge "Start nova sshd container only if enabled"
This commit is contained in:
commit
778f13f568
@ -33,7 +33,6 @@ if [[ $(stat -c %U:%G ~nova/.ssh) != "nova:nova" ]]; then
|
|||||||
chown nova: ~nova/.ssh
|
chown nova: ~nova/.ssh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{{- if .Values.network.sshd.enabled }}
|
|
||||||
subnet_address="{{- .Values.network.sshd.from_subnet -}}"
|
subnet_address="{{- .Values.network.sshd.from_subnet -}}"
|
||||||
cat > /tmp/sshd_config_extend <<EOF
|
cat > /tmp/sshd_config_extend <<EOF
|
||||||
|
|
||||||
@ -48,6 +47,5 @@ Match Address $subnet_address
|
|||||||
EOF
|
EOF
|
||||||
cat /tmp/sshd_config_extend >> /etc/ssh/sshd_config
|
cat /tmp/sshd_config_extend >> /etc/ssh/sshd_config
|
||||||
rm /tmp/sshd_config_extend
|
rm /tmp/sshd_config_extend
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
exec /usr/sbin/sshd -D -e -o Port=$SSH_PORT
|
exec /usr/sbin/sshd -D -e -o Port=$SSH_PORT
|
||||||
|
@ -312,6 +312,7 @@ spec:
|
|||||||
mountPath: /etc/machine-id
|
mountPath: /etc/machine-id
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
||||||
|
{{- if .Values.network.sshd.enabled }}
|
||||||
- name: nova-compute-ssh
|
- name: nova-compute-ssh
|
||||||
{{ tuple $envAll "nova_compute_ssh" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "nova_compute_ssh" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.ssh | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.ssh | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
@ -343,6 +344,7 @@ spec:
|
|||||||
mountPath: /tmp/ssh-start.sh
|
mountPath: /tmp/ssh-start.sh
|
||||||
subPath: ssh-start.sh
|
subPath: ssh-start.sh
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: pod-tmp
|
- name: pod-tmp
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user