Merge "Nova: Break out NoVNC assets from the proxy process"
This commit is contained in:
commit
89a0c1f8f7
21
nova/templates/bin/_nova-vnc-proxy-init-assets.sh.tpl
Normal file
21
nova/templates/bin/_nova-vnc-proxy-init-assets.sh.tpl
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/}}
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
cp -vaR /usr/share/novnc/* /tmp/usr/share/novnc/
|
@ -63,6 +63,8 @@ data:
|
|||||||
{{ tuple "bin/_nova-novncproxy.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "bin/_nova-novncproxy.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
nova-vnc-compute-init.sh: |
|
nova-vnc-compute-init.sh: |
|
||||||
{{ tuple "bin/_nova-vnc-compute-init.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "bin/_nova-vnc-compute-init.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
|
nova-vnc-proxy-init-assets.sh: |
|
||||||
|
{{ tuple "bin/_nova-vnc-proxy-init-assets.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
nova-vnc-proxy-init.sh: |
|
nova-vnc-proxy-init.sh: |
|
||||||
{{ tuple "bin/_nova-vnc-proxy-init.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "bin/_nova-vnc-proxy-init.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -61,6 +61,19 @@ spec:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
- name: pod-shared
|
- name: pod-shared
|
||||||
mountPath: /tmp/pod-shared
|
mountPath: /tmp/pod-shared
|
||||||
|
- name: nova-novncproxy-init-assets
|
||||||
|
image: {{ .Values.images.novncproxy_assets }}
|
||||||
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||||
|
{{ tuple $envAll $envAll.Values.pod.resources.novncproxy | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
|
command:
|
||||||
|
- /tmp/nova-vnc-proxy-init-assets.sh
|
||||||
|
volumeMounts:
|
||||||
|
- name: nova-bin
|
||||||
|
mountPath: /tmp/nova-vnc-proxy-init-assets.sh
|
||||||
|
subPath: nova-vnc-proxy-init-assets.sh
|
||||||
|
readOnly: true
|
||||||
|
- name: pod-usr-share-novnc
|
||||||
|
mountPath: /tmp/usr/share/novnc
|
||||||
containers:
|
containers:
|
||||||
- name: nova-novncproxy
|
- name: nova-novncproxy
|
||||||
image: {{ .Values.images.novncproxy }}
|
image: {{ .Values.images.novncproxy }}
|
||||||
@ -77,6 +90,9 @@ spec:
|
|||||||
mountPath: /etc/nova/nova.conf
|
mountPath: /etc/nova/nova.conf
|
||||||
subPath: nova.conf
|
subPath: nova.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: pod-usr-share-novnc
|
||||||
|
mountPath: /usr/share/novnc
|
||||||
|
readOnly: true
|
||||||
- name: pod-shared
|
- name: pod-shared
|
||||||
mountPath: /tmp/pod-shared
|
mountPath: /tmp/pod-shared
|
||||||
{{- if $mounts_nova_novncproxy.volumeMounts }}{{ toYaml $mounts_nova_novncproxy.volumeMounts | indent 12 }}{{ end }}
|
{{- if $mounts_nova_novncproxy.volumeMounts }}{{ toYaml $mounts_nova_novncproxy.volumeMounts | indent 12 }}{{ end }}
|
||||||
@ -89,6 +105,8 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: nova-etc
|
name: nova-etc
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
|
- name: pod-usr-share-novnc
|
||||||
|
emptyDir: {}
|
||||||
- name: pod-shared
|
- name: pod-shared
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- if $mounts_nova_novncproxy.volumes }}{{ toYaml $mounts_nova_novncproxy.volumes | indent 8 }}{{ end }}
|
{{- if $mounts_nova_novncproxy.volumes }}{{ toYaml $mounts_nova_novncproxy.volumes | indent 8 }}{{ end }}
|
||||||
|
@ -60,6 +60,7 @@ images:
|
|||||||
conductor: docker.io/kolla/ubuntu-source-nova-conductor:3.0.3
|
conductor: docker.io/kolla/ubuntu-source-nova-conductor:3.0.3
|
||||||
scheduler: docker.io/kolla/ubuntu-source-nova-scheduler:3.0.3
|
scheduler: docker.io/kolla/ubuntu-source-nova-scheduler:3.0.3
|
||||||
novncproxy: docker.io/kolla/ubuntu-source-nova-novncproxy:3.0.3
|
novncproxy: docker.io/kolla/ubuntu-source-nova-novncproxy:3.0.3
|
||||||
|
novncproxy_assets: docker.io/kolla/ubuntu-source-nova-novncproxy:3.0.3
|
||||||
consoleauth: docker.io/kolla/ubuntu-source-nova-consoleauth:3.0.3
|
consoleauth: docker.io/kolla/ubuntu-source-nova-consoleauth:3.0.3
|
||||||
compute: docker.io/kolla/ubuntu-source-nova-compute:3.0.3
|
compute: docker.io/kolla/ubuntu-source-nova-compute:3.0.3
|
||||||
libvirt: docker.io/kolla/ubuntu-source-nova-libvirt:3.0.3
|
libvirt: docker.io/kolla/ubuntu-source-nova-libvirt:3.0.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user