blob: 7eaa7d13d43ad6a74523101e810ed5d816c82a77 [file] [log] [blame]
Joey Armstrong084e4472024-02-10 18:03:13 -05001# Copyright 2022-2024 Open Networking Foundation (ONF) and the ONF Contributors
Tinoj Josephdd1fd9d2022-08-01 23:59:26 +05302#
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
15apiVersion: apps/v1
16kind: Deployment
17metadata:
18 name: "{{ .Chart.Name }}"
19 labels:
20 release: {{ .Release.Name }}
21spec:
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 Josepha9e53c92022-08-23 10:08:46 +053048 value: "voltha-infra-redis-headless.{{ .Values.global.voltha_infra_namespace }}.svc.cluster.local"
Tinoj Josephdd1fd9d2022-08-01 23:59:26 +053049 - name: KV_STORE_PORT
50 value: "6379"
51 - name: KAFKA_ADAPTER_HOST
Akash Sonia02e9982022-12-09 10:11:41 +053052 value: "{{ tpl .Values.services.kafka.cluster.address . }}"
Tinoj Josephdd1fd9d2022-08-01 23:59:26 +053053 - 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"