diff options
Diffstat (limited to 'auth/helm/aaf/templates/aaf-gui.yaml')
-rw-r--r-- | auth/helm/aaf/templates/aaf-gui.yaml | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/auth/helm/aaf/templates/aaf-gui.yaml b/auth/helm/aaf/templates/aaf-gui.yaml index dcc1f7f0..758b6b27 100644 --- a/auth/helm/aaf/templates/aaf-gui.yaml +++ b/auth/helm/aaf/templates/aaf-gui.yaml @@ -29,11 +29,11 @@ spec: app: aaf-gui type: NodePort ports: - - name: aaf-gui + - name: {{.Values.services.gui.fqdn}} protocol: TCP nodePort: 30083 - port: 8200 - targetPort: 8200 + port: {{.Values.services.gui.internal_port}} + targetPort: {{.Values.services.gui.internal_port}} --- apiVersion: apps/v1 kind: Deployment @@ -42,7 +42,7 @@ metadata: labels: app: aaf-gui spec: - replicas: {{ .Values.replicas.gui }} + replicas: {{ .Values.services.gui.replicas }} selector: matchLabels: app: aaf-gui @@ -53,27 +53,27 @@ spec: spec: volumes: # Use this Pod Sharing dir to declare various States of starting - - name: {{ .Chart.Name }}-config-vol + - name: aaf-config-vol persistentVolumeClaim: - claimName: {{ .Chart.Name }}-config-pvc - - name: {{ .Chart.Name }}-status-vol + claimName: aaf-config-pvc + - name: aaf-status-vol persistentVolumeClaim: - claimName: {{ .Chart.Name }}-status-pvc + claimName: aaf-status-pvc initContainers: - - name: {{ .Chart.Name }}-config-container + - name: aaf-config-container image: {{ .Values.image.repository }}onap/aaf/aaf_config:{{ .Values.image.version }} imagePullPolicy: IfNotPresent command: ["bash","/opt/app/aaf_config/bin/agent.sh"] volumeMounts: - mountPath: "/opt/app/osaaf" - name: {{ .Chart.Name }}-config-vol + name: aaf-config-vol env: - name: AAF_ENV - value: "{{ .Values.cadi.aaf_env }}" + value: "{{ .Values.services.aaf_env }}" - name: LATITUDE - value: "{{ .Values.cadi.cadi_latitude }}" + value: "{{ .Values.services.cadi_latitude }}" - name: LONGITUDE - value: "{{ .Values.cadi.cadi_longitude }}" + value: "{{ .Values.services.cadi_longitude }}" - name: aaf_locator_container value: "helm" - name: aaf_locator_container_ns @@ -81,11 +81,11 @@ spec: fieldRef: fieldPath: metadata.namespace - name: aaf_locate_url - value: "https://aaf-locate.onap:8095" + value: "https://{{.Values.services.locate.fqdn}}.{{.Values.services.ns}}:{{.Values.services.locate.internal_port}}" - name: aaf_locator_public_fqdn - value: "aaf.osaaf.org" + value: "{{.Values.services.public_fqdn}}" - name: CASSANDRA_CLUSTER - value: "aaf-cass" + value: "{{.Values.services.cass.fqdn}}.{{.Values.services.ns}}" # - name: CASSANDRA_USER # value: "" # - name: CASSANDRA_PASSWORD @@ -96,18 +96,16 @@ spec: ### ### AAF-GUI ### - - name: {{ .Chart.Name }}-gui + - name: aaf-gui image: {{ .Values.image.repository }}onap/aaf/aaf_gui:{{ .Values.image.version }} imagePullPolicy: IfNotPresent command: ["/bin/bash","-c","cd /opt/app/aaf && /bin/bash bin/pod_wait.sh aaf-gui aaf-locate && exec bin/gui"] volumeMounts: - mountPath: "/opt/app/osaaf" - name: {{ .Chart.Name }}-config-vol + name: aaf-config-vol - mountPath: "/opt/app/aaf/status" - name: {{ .Chart.Name }}-status-vol + name: aaf-status-vol ports: - - name: aaf-gui + - name: {{.Values.services.gui.fqdn}} protocol: TCP - containerPort: 8200 - - + containerPort: {{.Values.services.gui.internal_port}} |