1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 #{{ if not .Values.disablePortalVncPortal }}
18 name: portal-vnc-profiles-ini
19 namespace: "{{ .Values.nsPrefix }}"
21 {{ (.Files.Glob "resources/vnc/init_profile/profiles.ini").AsConfig | indent 2 }}
26 name: portal-vnc-update-hosts
27 namespace: "{{ .Values.nsPrefix }}"
29 {{ (.Files.Glob "resources/scripts/update_hosts.sh").AsConfig | indent 2 }}
31 apiVersion: extensions/v1beta1
37 namespace: "{{ .Values.nsPrefix }}"
39 replicas: {{ .Values.vncPortalReplicas }}
60 fieldPath: metadata.namespace
61 image: {{ .Values.image.readiness }}
62 imagePullPolicy: {{ .Values.pullPolicy }}
63 name: portal-vnc-readiness
64 {{- if empty .Values.disablePolicyPap | not }}
72 value: {{ .Values.nsPrefix }}
73 image: {{ .Values.image.readiness }}
74 imagePullPolicy: {{ .Values.pullPolicy }}
75 name: vnc-pap-readiness
84 value: {{ .Values.nsPrefix }}
85 image: {{ .Values.image.readiness }}
86 imagePullPolicy: {{ .Values.pullPolicy }}
87 name: vnc-sdc-readiness
95 value: {{ .Values.nsPrefix }}
96 image: {{ .Values.image.readiness }}
97 imagePullPolicy: {{ .Values.pullPolicy }}
98 name: vnc-vid-readiness
100 - image: {{ .Values.image.ubuntuDesktop }}
101 imagePullPolicy: {{ .Values.pullPolicy }}
105 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; (while true; do /tmp/update_hosts.sh sdc-be.{{ .Values.nsPrefix }} sdc.api.be.simpledemo.onap.org; /tmp/update_hosts.sh portalapps.{{ .Values.nsPrefix }} portal.api.simpledemo.onap.org; /tmp/update_hosts.sh pap.{{ .Values.nsPrefix }} policy.api.simpledemo.onap.org; /tmp/update_hosts.sh sdc-fe.{{ .Values.nsPrefix }} sdc.api.simpledemo.onap.org; /tmp/update_hosts.sh vid-server.{{ .Values.nsPrefix }} vid.api.simpledemo.onap.org; /tmp/update_hosts.sh sparky-be.{{ .Values.nsPrefix }} aai.api.simpledemo.onap.org; /tmp/update_hosts.sh cli.{{ .Values.nsPrefix }} cli.api.simpledemo.onap.org; sleep 10; done) > update_hosts.log 2>&1 &"]
111 - mountPath: /etc/localtime
114 - mountPath: /root/.init_profile/profiles.ini
115 name: vnc-profiles-ini
116 subPath: profiles.ini
117 - mountPath: /tmp/update_hosts.sh
118 name: vnc-update-hosts
119 subPath: update_hosts.sh
127 - name: vnc-profiles-ini
129 name: portal-vnc-profiles-ini
130 - name: vnc-update-hosts
132 name: portal-vnc-update-hosts
135 - name: "{{ .Values.nsPrefix }}-docker-registry-key"