X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fdep.git;a=blobdiff_plain;f=smo-install%2Foran_oom%2Frappcatalogueservice%2Ftemplates%2Fdeployment.yaml;fp=smo-install%2Foran_oom%2Frappcatalogueservice%2Ftemplates%2Fdeployment.yaml;h=810c7d3d7db05d7c8cab65be372c69ca62fcd18b;hp=95304c5da757580c69e2f48a3c8c9efcb9093529;hb=918108f729c368db61fe904024129f21269e19b7;hpb=c9ace66e2b4635918c4c4c473dfc7bcbeb41b7ae diff --git a/smo-install/oran_oom/rappcatalogueservice/templates/deployment.yaml b/smo-install/oran_oom/rappcatalogueservice/templates/deployment.yaml index 95304c5d..810c7d3d 100644 --- a/smo-install/oran_oom/rappcatalogueservice/templates/deployment.yaml +++ b/smo-install/oran_oom/rappcatalogueservice/templates/deployment.yaml @@ -16,46 +16,17 @@ kind: Deployment apiVersion: apps/v1 -metadata: - name: {{ include "common.name.rappcatalogueservice" . }} - namespace: {{ include "common.namespace.nonrtric" . }} - generation: 1 - labels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappcatalogueservice" . }} - chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - deployment.kubernetes.io/revision: '1' +metadata: {{- include "common.resourceMetadata" . | nindent 2 }} spec: replicas: 1 - selector: - matchLabels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappcatalogueservice" . }} - release: {{ .Release.Name }} + selector: {{- include "common.selectors" . | nindent 4 }} template: - metadata: - labels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappcatalogueservice" . }} - release: {{ .Release.Name }} + metadata: {{- include "common.templateMetadata" . | nindent 6 }} spec: - hostname: {{ include "common.name.rappcatalogueservice" . }} + hostname: {{ include "common.name" . }} containers: - - name: {{ include "common.container.rappcatalogueservice" . }} - image: {{ .Values.rappcatalogueservice.image.registry }}/{{ .Values.rappcatalogueservice.image.name }}:{{ .Values.rappcatalogueservice.image.tag }} - imagePullPolicy: {{ .Values.rappcatalogueservice.imagePullPolicy }} - ports: - - containerPort: {{ .Values.rappcatalogueservice.service.targetPort1 }} - protocol: TCP - - containerPort: {{ .Values.rappcatalogueservice.service.targetPort2 }} - protocol: TCP - readinessProbe: - tcpSocket: - port: {{ .Values.rappcatalogueservice.service.targetPort1 }} - initialDelaySeconds: {{ .Values.rappcatalogueservice.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.rappcatalogueservice.liveness.periodSeconds }} - livenessProbe: - tcpSocket: - port: {{ .Values.rappcatalogueservice.service.targetPort1 }} - initialDelaySeconds: {{ .Values.rappcatalogueservice.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.rappcatalogueservice.liveness.periodSeconds }} + - name: {{ include "common.containername" . }} + image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }} + imagePullPolicy: {{ .Values.imagePullPolicy }} + ports: {{- include "common.containerPorts" . | nindent 8 }} + {{- include "common.tcpsocketProbes" . | nindent 8 }}