X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fdcaegen2%2Fcharts%2Fdcae-cloudify-manager%2Ftemplates%2Fdeployment.yaml;h=62eeb45281501af5ec86cd17f4fd95aecd050848;hb=cec10b4b7f1dc17f514d7e9684383b213d0da709;hp=76c83af56b3fbd7b23c191c71a1b4d8f49042fee;hpb=db5d152980c9c1af95a510a48815512aa84b3fad;p=oom.git diff --git a/kubernetes/dcaegen2/charts/dcae-cloudify-manager/templates/deployment.yaml b/kubernetes/dcaegen2/charts/dcae-cloudify-manager/templates/deployment.yaml index 76c83af56b..62eeb45281 100644 --- a/kubernetes/dcaegen2/charts/dcae-cloudify-manager/templates/deployment.yaml +++ b/kubernetes/dcaegen2/charts/dcae-cloudify-manager/templates/deployment.yaml @@ -1,7 +1,7 @@ #============LICENSE_START======================================================== # ================================================================================ # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. -# Copyright © 2018 Amdocs, Bell Canada +# Modifications Copyright © 2018 Amdocs, Bell Canada # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -36,8 +36,10 @@ spec: spec: containers: - name: {{ include "common.name" . }} - image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}" + image: "{{ include "common.repository" . }}/{{ .Values.image }}" imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + resources: +{{ include "common.resources" . | indent 12 }} ports: - containerPort: {{ .Values.service.internalPort }} # disable liveness probe when breakpoints set in debugger @@ -68,18 +70,10 @@ spec: - mountPath: /etc/localtime name: localtime readOnly: true + - mountPath: /cfy-persist + name: cm-persistent securityContext: privileged: True - lifecycle: - postStart: - exec: - command: - - bash - - "-c" - - | - set -ex - mkdir -p /var/run/secrets/kubernetes.io/ - ln -s /secret /var/run/secrets/kubernetes.io/serviceaccount volumes: - name: {{ include "common.fullname" . }}-config configMap: @@ -93,5 +87,8 @@ spec: - name: localtime hostPath: path: /etc/localtime + - name: cm-persistent + persistentVolumeClaim: + claimName: {{ include "common.fullname" . }}-data imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key"