Something went wrong on our end
deployment.yaml 8.29 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 }}-{{ .Values.multus.n2Interface.name }}",
"interface": "{{ .Values.multus.n2Interface.name }}"
{{- 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 }}-{{ .Values.multus.n3Interface.name }}",
"interface": "{{ .Values.multus.n3Interface.name }}"
{{- 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 }}-{{ .Values.multus.ru1Interface.name }}",
"interface": "{{ .Values.multus.ru1Interface.name }}"
{{- 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 }}-{{ .Values.multus.ru2Interface.name }}",
"interface": "{{ .Values.multus.ru2Interface.name }}"
{{- if .Values.multus.ru2Interface.mac }}
,"mac": "{{ .Values.multus.ru2Interface.mac }}"
{{- end }}
{{- if .Values.multus.ru2Interface.gateway }}
,"gateway": ["{{ .Values.multus.ru2Interface.gateway }}"]
{{- end }}
}
{{- end }}