Something went wrong on our end
deployment.yaml 8.17 KiB
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
labels:
{{- include "oai-gnb.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "oai-gnb.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "oai-gnb.selectorLabels" . | nindent 8 }}
app: oai-gnb
{{- if .Values.multus.n2Interface.create }}
annotations:
k8s.v1.cni.cncf.io/networks: >-
[{
"name": "{{ .Chart.Name }}-n2",
"interface": "n2"
{{- if .Values.multus.n2Interface.Mac }}
,"mac": "{{ .Values.multus.n2Interface.Mac }}"
{{- end }}
{{- if .Values.multus.defaultGateway }}
,"default-route": ["{{ .Values.multus.defaultGateway }}"]
{{- end }}
{{- if .Values.multus.n2Interface.Gateway }}
,"gateway": ["{{ .Values.multus.n2Interface.Gateway }}"]
{{- end }}
}
{{- if .Values.multus.n3Interface.create }}
,{
"name": "{{ .Chart.Name }}-n3",
"interface": "n3"
{{- if .Values.multus.n3Interface.Mac }}
,"mac": "{{ .Values.multus.n3Interface.Mac }}"
{{- end }}
{{- if .Values.multus.n3Interface.Gateway }}
,"gateway": ["{{ .Values.multus.n3Interface.Gateway }}"]
{{- end }}
}
{{- 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 }}