blob: 7d1516ed3f9d6b6ce89b13c7e335cd10321c655a [file] [log] [blame]
Tinoj Josephdd1fd9d2022-08-01 23:59:26 +05301# Copyright 2022-present Open Networking Foundation
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
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
48 value: "redis-master.{{ .Values.global.voltha_infra_namespace }}.svc.cluster.local"
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"