Something went wrong on our end
deployment.yaml 7.27 KiB
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
labels:
{{- include "oai-du.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-du.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "oai-du.selectorLabels" . | nindent 8 }}
app: oai-du
{{- if .Values.multus.f1Interface.create }}
annotations:
k8s.v1.cni.cncf.io/networks: >-
[{
"name": "{{ .Chart.Name }}-f1",
"interface": "f1"
{{- if .Values.multus.f1Interface.Mac }}
,"mac": "{{ .Values.multus.f1Interface.Mac }}"
{{- end }}
{{- if .Values.multus.defaultGateway }}
,"default-route": ["{{ .Values.multus.defaultGateway }}"]
{{- end }}
}
{{- if .Values.multus.ru1Interface.create }}
,{
"name": "{{ .Chart.Name }}-ru1",
"interface": "ru1"
{{- if .Values.multus.ru1Interface.Mac }}
,"mac": "{{ .Values.multus.ru1Interface.Mac }}"
{{- end }}
{{- if .Values.multus.ru1Interface.Gateway }}
,"gateway": ["{{ .Values.multus.ru1Interface.Gateway }}"]
{{- end }}
}
{{- end }}
{{- if .Values.multus.ru2Interface.create }}
,{
"name": "{{ .Chart.Name }}-ru2",
"interface": "ru2"
{{- if .Values.multus.ru2Interface.Mac }}
,"mac": "{{ .Values.multus.ru2Interface.Mac }}"
{{- end }}
{{- if .Values.multus.ru2Interface.Gateway }}
,"gateway": ["{{ .Values.multus.ru2Interface.Gateway }}"]
{{- end }}
}
{{- end }}
]
{{- end }}
spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
containers:
- name: gnbdu
image: "{{ .Values.nfimage.repository }}:{{ .Values.nfimage.version }}"
volumeMounts:
{{- if eq .Values.config.usrp "aw2s" }}
- mountPath: /opt/oai-gnb-aw2s/etc