Something went wrong on our end
-
Sagar Arora authored
- Instantiate helm charts using helm spray - Helm chart for NSSF, CU, DU, gNBSIM
Sagar Arora authored- Instantiate helm charts using helm spray - Helm chart for NSSF, CU, DU, gNBSIM
deployment.yaml 6.23 KiB
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
labels:
{{- include "oai-gnb.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-gnb.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "oai-gnb.selectorLabels" . | nindent 8 }}
app: 5grf-sim
{{- if .Values.multus.create }}
annotations:
k8s.v1.cni.cncf.io/networks: >-
[{
"name": "{{ .Chart.Name }}-net1",
"default-route": ["{{ .Values.multus.gateway }}"]
},
{
"name": "{{ .Chart.Name }}-net2",
}]
{{- end }}
spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
containers:
- name: gnb
image: "{{ .Values.nfimage.repository }}:{{ .Values.nfimage.version }}"
{{- if .Values.resources.define}}
resources:
requests:
memory: {{ .Values.resources.requests.memory | quote }}
cpu: {{ .Values.resources.requests.cpu | quote }}
limits:
memory: {{ .Values.resources.limits.memory | quote }}
cpu: {{ .Values.resources.limits.cpu | quote }}
{{- end}}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: {{ .Values.service.s1uPort }}
name: s1u
protocol: UDP
- containerPort: {{ .Values.service.s1cPort }}
name: s1c
protocol: UDP
- containerPort: {{ .Values.service.x2cPort }}
name: x2c
protocol: UDP
{{- if .Values.start.gnb}}
{{- else}}
command:
- /bin/sleep
- infinity
{{- end}}
env:
- name: TZ
valueFrom:
configMapKeyRef: