RIC-961:implement Xn and X2 component IDs correctly in E2M
[ric-plt/e2mgr.git] / tools / gnbe2-oran-simu / templates / deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: {{ include "gnbe2-oran-simu.fullname" . }}
5   labels:
6     app.kubernetes.io/name: {{ include "gnbe2-oran-simu.name" . }}
7     helm.sh/chart: {{ include "gnbe2-oran-simu.chart" . }}
8     app.kubernetes.io/instance: {{ .Release.Name }}
9     app.kubernetes.io/managed-by: {{ .Release.Service }}
10 spec:
11   replicas: {{ .Values.replicaCount }}
12   selector:
13     matchLabels:
14       app.kubernetes.io/name: {{ include "gnbe2-oran-simu.name" . }}
15       app.kubernetes.io/instance: {{ .Release.Name }}
16   template:
17     metadata:
18       labels:
19         app.kubernetes.io/name: {{ include "gnbe2-oran-simu.name" . }}
20         app.kubernetes.io/instance: {{ .Release.Name }}
21     spec:
22       hostNetwork: true
23       containers:
24       - name: {{ .Chart.Name }}
25         image: "{{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}"
26         imagePullPolicy: {{ .Values.image.pullPolicy }}
27         ports:
28         - containerPort: {{ .Values.service.internalPort }}
29 #        livenessProbe:
30 #          tcpSocket:
31 #            port: {{ .Values.service.internalPort }}
32 #        readinessProbe:
33 #          tcpSocket:
34 #             port: {{ .Values.service.internalPort }}
35         resources:
36         {{- toYaml .Values.resources | nindent 12 }}
37         env:
38         - name: gNBipv4
39           value: 0.0.0.0
40         - name: gNBport
41           value: "{{ .Values.service.internalPort }}"
42         - name: ricIpv4
43           value: $(SERVICE_RICPLT_E2TERM_SCTP_ALPHA_SERVICE_HOST)
44         - name: ricPort
45           value: $(SERVICE_RICPLT_E2TERM_SCTP_ALPHA_SERVICE_PORT)
46         - name: nbue
47           value: "0"
48         {{- with .Values.nodeSelector }}
49       nodeSelector:
50         {{- toYaml . | nindent 8 }}
51       {{- end }}
52       {{- with .Values.affinity }}
53       affinity:
54         {{- toYaml . | nindent 8 }}
55       {{- end }}
56       {{- with .Values.tolerations }}
57       tolerations:
58         {{- toYaml . | nindent 8 }}
59       {{- end }}