Joey Armstrong | 0747509 | 2023-01-26 10:56:13 -0500 | [diff] [blame] | 1 | # Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Tinoj Joseph | dd1fd9d | 2022-08-01 23:59:26 +0530 | [diff] [blame] | 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: apps/v1 |
| 16 | kind: Deployment |
| 17 | metadata: |
| 18 | name: "{{ .Chart.Name }}" |
| 19 | labels: |
| 20 | release: {{ .Release.Name }} |
| 21 | spec: |
| 22 | replicas: {{ .Values.replicaCount }} |
| 23 | selector: |
| 24 | matchLabels: |
| 25 | app: "{{ .Chart.Name }}" |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: "{{ .Chart.Name }}" |
| 30 | spec: |
| 31 | containers: |
| 32 | - env: |
| 33 | - name: POD_IP |
| 34 | valueFrom: |
| 35 | fieldRef: |
| 36 | fieldPath: status.podIP |
| 37 | - name: NAMESPACE |
| 38 | valueFrom: |
| 39 | fieldRef: |
| 40 | fieldPath: metadata.namespace |
| 41 | - name: VOLTHA_HOST |
| 42 | value: "$(NAMESPACE)-voltha-api.$(NAMESPACE).svc.cluster.local" |
| 43 | - name: VOLTHA_PORT |
| 44 | value: "55555" |
| 45 | - name: KV_STORE_TYPE |
| 46 | value: "redis" |
| 47 | - name: KV_STORE_HOST |
Tinoj Joseph | a9e53c9 | 2022-08-23 10:08:46 +0530 | [diff] [blame] | 48 | value: "voltha-infra-redis-headless.{{ .Values.global.voltha_infra_namespace }}.svc.cluster.local" |
Tinoj Joseph | dd1fd9d | 2022-08-01 23:59:26 +0530 | [diff] [blame] | 49 | - name: KV_STORE_PORT |
| 50 | value: "6379" |
| 51 | - name: KAFKA_ADAPTER_HOST |
| 52 | value: "internal-kafka-headless.{{ .Values.global.voltha_infra_namespace }}.svc.cluster.local" |
| 53 | - name: KAFKA_ADAPTER_PORT |
| 54 | value: "9092" |
| 55 | - name: LOG_LEVEL |
| 56 | value: .Values.global.log_level |
| 57 | image: '{{ tpl .Values.images.voltha_go_controller.registry . }}{{ tpl .Values.images.voltha_go_controller.repository . }}:{{ tpl ( tpl .Values.images.voltha_go_controller.tag . ) . }}' |
| 58 | imagePullPolicy: {{ tpl .Values.images.voltha_go_controller.pullPolicy . }} |
| 59 | name: voltha-go-controller |
| 60 | ports: |
| 61 | - containerPort: {{ .Values.voltha_go_controller.sshPort }} |
| 62 | name: ssh-port |
| 63 | - containerPort: {{ .Values.voltha_go_controller.uiPort }} |
| 64 | name: ui-port |
| 65 | protocol: "{{ .Values.voltha_go_controller.uiProtocol }}" |
| 66 | restartPolicy: "Always" |