X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fdep.git;a=blobdiff_plain;f=smo-install%2Foran_oom%2Fodu-app%2Ftemplates%2Fdeployment.yaml;fp=smo-install%2Foran_oom%2Fodu-app%2Ftemplates%2Fdeployment.yaml;h=8a2f0984cafd40bbc0f5610c1efe2b001628cd97;hp=7978f8fad84fd3339be0880c07654880127f3a6f;hb=918108f729c368db61fe904024129f21269e19b7;hpb=c9ace66e2b4635918c4c4c473dfc7bcbeb41b7ae diff --git a/smo-install/oran_oom/odu-app/templates/deployment.yaml b/smo-install/oran_oom/odu-app/templates/deployment.yaml index 7978f8fa..8a2f0984 100755 --- a/smo-install/oran_oom/odu-app/templates/deployment.yaml +++ b/smo-install/oran_oom/odu-app/templates/deployment.yaml @@ -15,23 +15,12 @@ apiVersion: apps/v1 kind: Deployment -metadata: - name: {{ include "odu-app.fullname" . }} - labels: - {{- include "odu-app.labels" . | nindent 4 }} +metadata: {{- include "common.resourceMetadata" . | nindent 2 }} spec: replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "odu-app.selectorLabels" . | nindent 6 }} + selector: {{- include "common.selectors" . | nindent 4 }} template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "odu-app.selectorLabels" . | nindent 8 }} + metadata: {{- include "common.templateMetadata" . | nindent 6 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: @@ -40,7 +29,7 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - - name: {{ .Chart.Name }} + - name: {{ include "common.containername" . }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" @@ -58,10 +47,7 @@ spec: value: "{{ .Values.sdnr.password }}" - name: NODE_ID value: "{{ .Values.simulator.node }}" - ports: - - name: http - containerPort: 80 - protocol: TCP + ports: {{- include "common.containerPorts" . | nindent 10 }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }}