kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 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 |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 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. |
| 14 | |
| 15 | apiVersion: extensions/v1beta1 |
| 16 | kind: Deployment |
| 17 | metadata: |
| 18 | labels: |
| 19 | app: {{ include "common.name" . }} |
| 20 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 21 | release: {{ include "common.release" . }} |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 22 | heritage: {{ .Release.Service }} |
| 23 | name: {{ include "common.fullname" . }} |
| 24 | namespace: {{ include "common.namespace" . }} |
| 25 | spec: |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 26 | replicas: {{ .Values.global.aaf.gui.replicas }} |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 27 | template: |
| 28 | metadata: |
| 29 | labels: |
| 30 | app: {{ include "common.name" . }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 31 | release: {{ include "common.release" . }} |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 32 | spec: |
| 33 | initContainers: |
Instrumental | 378109d | 2018-10-16 20:40:41 -0500 | [diff] [blame] | 34 | - name: {{ include "common.name" . }}-config-container |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 35 | image: {{ .Values.global.repository }}/{{.Values.global.aaf.config.image}} |
Mahendra Raghuwanshi | afb1e2a | 2018-05-03 12:15:03 +0000 | [diff] [blame] | 36 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 37 | command: ["bash","-c","cd /opt/app/aaf_config && bin/pod_wait.sh config aaf-service remove && bin/agent.sh"] |
Instrumental | 378109d | 2018-10-16 20:40:41 -0500 | [diff] [blame] | 38 | volumeMounts: |
| 39 | - mountPath: "/opt/app/osaaf" |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 40 | name: aaf-config-vol |
| 41 | - mountPath: "/opt/app/aaf/status" |
| 42 | name: aaf-status-vol |
Instrumental | 378109d | 2018-10-16 20:40:41 -0500 | [diff] [blame] | 43 | env: |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 44 | - name: aaf_env |
| 45 | value: "{{ .Values.global.aaf.aaf_env }}" |
| 46 | - name: cadi_latitude |
| 47 | value: "{{ .Values.global.aaf.cadi_latitude }}" |
| 48 | - name: cadi_longitude |
| 49 | value: "{{ .Values.global.aaf.cadi_longitude }}" |
| 50 | - name: cadi_x509_issuers |
| 51 | value: "{{ .Values.global.aaf.cadi_x509_issuers }}" |
| 52 | - name: aaf_locate_url |
| 53 | value: "https://aaf-locate.{{ .Release.Namespace}}:{{.Values.global.aaf.locate.internal_port}}" |
| 54 | - name: aaf_locator_container |
| 55 | value: "oom" |
| 56 | - name: aaf_release |
| 57 | value: "{{ .Values.global.aaf.aaf_release }}" |
| 58 | - name: aaf_locator_container_ns |
| 59 | value: "{{ .Release.Namespace }}" |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 60 | - name: aaf_locator_public_fqdn |
| 61 | value: "{{.Values.global.aaf.public_fqdn}}" |
| 62 | - name: aaf_locator_name |
| 63 | value: "{{.Values.global.aaf.aaf_locator_name}}" |
| 64 | - name: aaf_locator_name_oom |
| 65 | value: "{{.Values.global.aaf.aaf_locator_name_oom}}" |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 66 | - name: cm_always_ignore_ips |
| 67 | value: "true" |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 68 | - name: CASSANDRA_CLUSTER |
| 69 | value: "{{.Values.global.aaf.cass.fqdn}}.{{ .Release.Namespace }}" |
| 70 | # - name: CASSANDRA_USER |
| 71 | # value: "" |
| 72 | # - name: CASSANDRA_PASSWORD |
| 73 | # value: "" |
| 74 | # - name: CASSANDRA_PORT |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 75 | # value: "" |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 76 | containers: |
Mandeep Khinda | 6dcc80d | 2018-10-09 14:47:35 +0000 | [diff] [blame] | 77 | - name: {{ include "common.name" . }} |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 78 | command: ["/bin/bash","-c","cd /opt/app/aaf && /bin/bash bin/pod_wait.sh aaf-gui aaf-locate && exec bin/gui"] |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 79 | image: {{ .Values.global.repository }}/{{.Values.global.aaf.image}} |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 80 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 81 | volumeMounts: |
Mandeep Khinda | 6dcc80d | 2018-10-09 14:47:35 +0000 | [diff] [blame] | 82 | - mountPath: "/opt/app/osaaf" |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 83 | name: aaf-config-vol |
| 84 | - mountPath: "/opt/app/aaf/status" |
| 85 | name: aaf-status-vol |
Mahendra Raghuwanshi | afb1e2a | 2018-05-03 12:15:03 +0000 | [diff] [blame] | 86 | - mountPath: /etc/localtime |
| 87 | name: localtime |
| 88 | readOnly: true |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 89 | {{- if eq .Values.liveness.enabled true }} |
| 90 | livenessProbe: |
| 91 | tcpSocket: |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 92 | port: {{ .Values.global.aaf.gui.internal_port }} |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 93 | initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} |
| 94 | periodSeconds: {{ .Values.liveness.periodSeconds }} |
| 95 | {{ end -}} |
| 96 | readinessProbe: |
| 97 | tcpSocket: |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 98 | port: {{ .Values.global.aaf.gui.internal_port }} |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 99 | initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} |
| 100 | periodSeconds: {{ .Values.readiness.periodSeconds }} |
| 101 | resources: |
Mandeep Khinda | 5e3f36a | 2018-09-24 15:25:42 +0000 | [diff] [blame] | 102 | {{ include "common.resources" . | indent 12 }} |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 103 | {{- if .Values.nodeSelector }} |
| 104 | nodeSelector: |
| 105 | {{ toYaml .Values.nodeSelector | indent 10 }} |
| 106 | {{- end -}} |
| 107 | {{- if .Values.affinity }} |
| 108 | affinity: |
| 109 | {{ toYaml .Values.affinity | indent 10 }} |
| 110 | {{- end }} |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 111 | volumes: |
Mahendra Raghuwanshi | afb1e2a | 2018-05-03 12:15:03 +0000 | [diff] [blame] | 112 | - name: localtime |
| 113 | hostPath: |
| 114 | path: /etc/localtime |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 115 | - name: aaf-status-vol |
| 116 | persistentVolumeClaim: |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 117 | claimName: {{ include "common.release" . }}-aaf-status |
Instrumental | cc3a0bd | 2019-05-01 14:18:49 -0500 | [diff] [blame] | 118 | - name: aaf-config-vol |
| 119 | persistentVolumeClaim: |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 120 | claimName: {{ include "common.release" . }}-aaf-config |
kj | 52dfb13 | 2018-03-27 15:50:39 +0300 | [diff] [blame] | 121 | imagePullSecrets: |
Instrumental | 378109d | 2018-10-16 20:40:41 -0500 | [diff] [blame] | 122 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |