Something went wrong on our end
deployment.yaml 7.52 KiB
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
labels:
{{- include "oai-cu-cp.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "oai-cu-cp.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "oai-cu-cp.selectorLabels" . | nindent 8 }}
app: oai-cu-cp
{{- if .Values.multus.e1Interface.create }}
annotations:
k8s.v1.cni.cncf.io/networks: >-
[{
"name": "{{ .Chart.Name }}-{{ .Values.multus.e1Interface.name }}",
"interface": "{{ .Values.multus.e1Interface.name }}"
{{- if .Values.multus.e1Interface.mac }}
,"mac": "{{ .Values.multus.e1Interface.mac }}"
{{- end }}
{{- if .Values.multus.defaultGateway }}
,"default-route": ["{{ .Values.multus.defaultGateway }}"]
{{- end }}
{{- if .Values.multus.e1Interface.gateway }}
,"gateway": "{{ .Values.multus.e1Interface.gateway }}"
{{- end }}
}
{{- if .Values.multus.n2Interface.create }}
,{
"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.n2Interface.gateway }}
,"gateway": "{{ .Values.multus.n2Interface.gateway }}"
{{- end }}
}
{{- end }}
{{- if .Values.multus.f1cInterface.create }}
,{
"name": "{{ .Chart.Name }}-{{ .Values.multus.f1cInterface.name }}",
"interface": "{{ .Values.multus.f1cInterface.name }}"
{{- if .Values.multus.f1cInterface.mac }}
,"mac": "{{ .Values.multus.f1cInterface.mac }}"
{{- end }}
{{- if .Values.multus.f1cInterface.gateway }}
,"gateway": "{{ .Values.multus.f1cInterface.gateway }}"
{{- end }}
}
{{- end }}
]
{{- end }}
spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
{{- if .Values.global }}{{ if .Values.global.waitForAMF }}
initContainers:
- name: init