diff --git a/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml b/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml index 9dbad328..14782d5d 100644 --- a/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml +++ b/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml @@ -21,8 +21,18 @@ spec: app.kubernetes.io/managed-by: {{ .Release.Service }} replicas: {{ .Values.notification.replicas }} {{- if .Values.logIngest.enabled }} +{{- if .Values.notification.deploymentStrategy }} + strategy: + type: {{ .Values.notification.deploymentStrategy.type }} +{{- if eq .Values.notification.deploymentStrategy.type "RollingUpdate" }} + rollingUpdate: + maxSurge: {{ .Values.notification.deploymentStrategy.rollingUpdate.maxSurge }} + maxUnavailable: {{ .Values.notification.deploymentStrategy.rollingUpdate.maxUnavailable }} +{{- end }} +{{- else }} strategy: type: Recreate +{{- end }} {{- end }} template: metadata: diff --git a/freeleaps/helm-pkg/notification/values.alpha.yaml b/freeleaps/helm-pkg/notification/values.alpha.yaml index d8c6467d..98eaab21 100644 --- a/freeleaps/helm-pkg/notification/values.alpha.yaml +++ b/freeleaps/helm-pkg/notification/values.alpha.yaml @@ -17,6 +17,11 @@ notification: name: notification tag: snapshot-11c52d6 imagePullPolicy: IfNotPresent + deploymentStrategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 ports: - name: http containerPort: 8003 @@ -34,21 +39,21 @@ notification: config: path: /api/_/livez port: 8003 - initialDelaySeconds: 60 + initialDelaySeconds: 120 periodSeconds: 30 timeoutSeconds: 3 successThreshold: 1 - failureThreshold: 5 + failureThreshold: 10 liveness: type: httpGet config: path: /api/_/livez port: 8003 - initialDelaySeconds: 60 + initialDelaySeconds: 120 periodSeconds: 30 timeoutSeconds: 3 successThreshold: 1 - failureThreshold: 5 + failureThreshold: 10 terminationGracePeriodSeconds: 30 services: - name: notification-service diff --git a/freeleaps/helm-pkg/payment/values.alpha.yaml b/freeleaps/helm-pkg/payment/values.alpha.yaml index b36e5495..6ea229a9 100644 --- a/freeleaps/helm-pkg/payment/values.alpha.yaml +++ b/freeleaps/helm-pkg/payment/values.alpha.yaml @@ -34,21 +34,21 @@ payment: config: path: /api/_/readyz port: 8006 - initialDelaySeconds: 5 + initialDelaySeconds: 90 periodSeconds: 30 timeoutSeconds: 3 successThreshold: 1 - failureThreshold: 3 + failureThreshold: 8 liveness: type: httpGet config: path: /api/_/livez port: 8006 - initialDelaySeconds: 5 + initialDelaySeconds: 90 periodSeconds: 15 timeoutSeconds: 3 successThreshold: 1 - failureThreshold: 3 + failureThreshold: 8 terminationGracePeriodSeconds: 30 services: - name: payment-service