|
|
|
|
@@ -104,6 +104,7 @@ spec:
|
|
|
|
|
mountPath: /var/lib/nova
|
|
|
|
|
- name: pod-shared
|
|
|
|
|
mountPath: /tmp/pod-shared
|
|
|
|
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
|
|
|
|
{{- if .Values.conf.ceph.enabled }}
|
|
|
|
|
- name: ceph-perms
|
|
|
|
|
{{ tuple $envAll "nova_compute" | include "helm-toolkit.snippets.image" | indent 10 }}
|
|
|
|
|
@@ -119,6 +120,7 @@ spec:
|
|
|
|
|
mountPath: /tmp
|
|
|
|
|
- name: etcceph
|
|
|
|
|
mountPath: /etc/ceph
|
|
|
|
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
|
|
|
|
{{- if empty .Values.conf.ceph.cinder.keyring }}
|
|
|
|
|
- name: ceph-admin-keyring-placement
|
|
|
|
|
{{ tuple $envAll "nova_compute" | include "helm-toolkit.snippets.image" | indent 10 }}
|
|
|
|
|
@@ -141,6 +143,7 @@ spec:
|
|
|
|
|
subPath: key
|
|
|
|
|
readOnly: true
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
- name: ceph-keyring-placement
|
|
|
|
|
{{ tuple $envAll "nova_compute" | include "helm-toolkit.snippets.image" | indent 10 }}
|
|
|
|
|
@@ -169,6 +172,7 @@ spec:
|
|
|
|
|
mountPath: /etc/ceph/ceph.conf.template
|
|
|
|
|
subPath: ceph.conf
|
|
|
|
|
readOnly: true
|
|
|
|
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{- if eq .Values.console.console_kind "novnc"}}
|
|
|
|
|
- name: nova-compute-vnc-init
|
|
|
|
|
@@ -187,6 +191,7 @@ spec:
|
|
|
|
|
readOnly: true
|
|
|
|
|
- name: pod-shared
|
|
|
|
|
mountPath: /tmp/pod-shared
|
|
|
|
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{- if eq .Values.console.console_kind "spice"}}
|
|
|
|
|
- name: nova-compute-spice-init
|
|
|
|
|
@@ -205,6 +210,7 @@ spec:
|
|
|
|
|
readOnly: true
|
|
|
|
|
- name: pod-shared
|
|
|
|
|
mountPath: /tmp/pod-shared
|
|
|
|
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{- if ( has "tungstenfabric" .Values.network.backend ) }}
|
|
|
|
|
- name: tungstenfabric-compute-init
|
|
|
|
|
@@ -217,15 +223,19 @@ spec:
|
|
|
|
|
mountPath: /opt/plugin
|
|
|
|
|
- name: tf-plugin-bin
|
|
|
|
|
mountPath: /opt/plugin/bin
|
|
|
|
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- if .Values.network.ssh.enabled }}
|
|
|
|
|
- name: nova-compute-ssh-init
|
|
|
|
|
{{ 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 }}
|
|
|
|
|
{{ dict "envAll" $envAll "application" "nova" "container" "nova_compute_ssh_init" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
|
|
|
|
terminationMessagePath: /var/log/termination-log
|
|
|
|
|
env:
|
|
|
|
|
- name: SSH_PORT
|
|
|
|
|
value: {{ .Values.network.ssh.port | quote }}
|
|
|
|
|
- name: NOVA_USER_UID
|
|
|
|
|
value: "{{ .Values.pod.security_context.nova.pod.runAsUser }}"
|
|
|
|
|
command:
|
|
|
|
|
- /tmp/ssh-init.sh
|
|
|
|
|
volumeMounts:
|
|
|
|
|
@@ -241,14 +251,13 @@ spec:
|
|
|
|
|
mountPath: /tmp/ssh-init.sh
|
|
|
|
|
subPath: ssh-init.sh
|
|
|
|
|
readOnly: true
|
|
|
|
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
containers:
|
|
|
|
|
- name: nova-compute
|
|
|
|
|
{{ tuple $envAll "nova_compute" | include "helm-toolkit.snippets.image" | indent 10 }}
|
|
|
|
|
{{ tuple $envAll $envAll.Values.pod.resources.compute | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
|
|
|
|
{{ dict "envAll" $envAll "application" "nova" "container" "nova_compute" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
|
|
|
|
securityContext:
|
|
|
|
|
privileged: true
|
|
|
|
|
env:
|
|
|
|
|
{{- if .Values.conf.ceph.enabled }}
|
|
|
|
|
- name: CEPH_CINDER_USER
|
|
|
|
|
@@ -431,8 +440,6 @@ spec:
|
|
|
|
|
{{ 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 }}
|
|
|
|
|
{{ dict "envAll" $envAll "application" "nova" "container" "nova_compute_ssh" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
|
|
|
|
securityContext:
|
|
|
|
|
privileged: true
|
|
|
|
|
env:
|
|
|
|
|
- name: KEY_TYPES
|
|
|
|
|
value: {{ include "helm-toolkit.utils.joinListWithComma" .Values.network.ssh.key_types | quote }}
|
|
|
|
|
@@ -455,6 +462,7 @@ spec:
|
|
|
|
|
subPath: ssh-start.sh
|
|
|
|
|
readOnly: true
|
|
|
|
|
{{- dict "enabled" .Values.manifests.certificates "name" .Values.secrets.tls.compute.osapi.internal "path" "/etc/nova/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }}
|
|
|
|
|
{{ if $mounts_nova_compute.volumeMounts }}{{ toYaml $mounts_nova_compute.volumeMounts | indent 12 }}{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
volumes:
|
|
|
|
|
- name: pod-tmp
|
|
|
|
|
|