1 #{{ if not .Values.disablePortalVncPortal }}
5 namespace: "{{ .Values.nsPrefix }}-portal"
7 {{ (.Files.Glob "resources/vnc/init_profile/profiles.ini").AsConfig | indent 2 }}
9 apiVersion: extensions/v1beta1
15 namespace: "{{ .Values.nsPrefix }}-portal"
26 pod.beta.kubernetes.io/init-containers: '[
41 "fieldPath": "metadata.namespace"
46 "image": "{{ .Values.image.readiness }}",
47 "imagePullPolicy": "{{ .Values.pullPolicy }}",
48 "name": "vnc-portal-readiness"
61 "value": "{{ .Values.nsPrefix }}-policy"
64 "image": "{{ .Values.image.readiness }}",
65 "imagePullPolicy": "{{ .Values.pullPolicy }}",
66 "name": "vnc-pap-readiness"
79 "value": "{{ .Values.nsPrefix }}-sdc"
82 "image": "{{ .Values.image.readiness }}",
83 "imagePullPolicy": "{{ .Values.pullPolicy }}",
84 "name": "vnc-sdc-readiness"
97 "value": "{{ .Values.nsPrefix }}-vid"
100 "image": "{{ .Values.image.readiness }}",
101 "imagePullPolicy": "{{ .Values.pullPolicy }}",
102 "name": "vnc-vid-readiness"
105 "command": ["/bin/sh","-c"],
106 "args": ["echo `host sdc-be.{{ .Values.nsPrefix }}-sdc | awk ''{print$4}''` sdc.api.be.simpledemo.onap.org >> /ubuntu-init/hosts; echo `host portalapps.{{ .Values.nsPrefix }}-portal | awk ''{print$4}''` portal.api.simpledemo.onap.org >> /ubuntu-init/hosts; echo `host pap.{{ .Values.nsPrefix }}-policy | awk ''{print$4}''` policy.api.simpledemo.onap.org >> /ubuntu-init/hosts; echo `host sdc-fe.{{ .Values.nsPrefix }}-sdc | awk ''{print$4}''` sdc.api.simpledemo.onap.org >> /ubuntu-init/hosts; echo `host vid-server.{{ .Values.nsPrefix }}-vid | awk ''{print$4}''` vid.api.simpledemo.onap.org >> /ubuntu-init/hosts; echo `host sparky-be.{{ .Values.nsPrefix }}-aai | awk ''{print$4}''` aai.api.simpledemo.onap.org >> /ubuntu-init/hosts"],
107 "image": "{{ .Values.image.ubuntuInit }}",
108 "imagePullPolicy": "{{ .Values.pullPolicy }}",
109 "name": "vnc-init-hosts",
112 "name": "ubuntu-init",
113 "mountPath": "/ubuntu-init/"
120 - image: {{ .Values.image.ubuntuDesktop }}
121 imagePullPolicy: {{ .Values.pullPolicy }}
125 command: ["/bin/sh", "-c", "mkdir -p /root/.mozilla/firefox/onap.default; cp /root/.init_profile/profiles.ini /root/.mozilla/firefox/; echo 'user_pref(\"browser.tabs.remote.autostart.2\", false);' > /root/.mozilla/firefox/onap.default/prefs.js; cat /ubuntu-init/hosts >> /etc/hosts"]
131 - mountPath: /etc/localtime
134 - mountPath: /ubuntu-init/
136 - mountPath: /root/.init_profile/profiles.ini
137 name: vnc-profiles-ini
138 subPath: profiles.ini
148 - name: vnc-profiles-ini
150 name: vnc-profiles-ini
152 - name: "{{ .Values.nsPrefix }}-docker-registry-key"