diff options
author | Jozsef Csongvai <jozsef.csongvai@bell.ca> | 2021-04-28 17:04:57 -0400 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-05-03 13:07:11 +0000 |
commit | 08515b79a76d6e077ef28e157fcffeec22dc2ad2 (patch) | |
tree | 83bb55521fa3d2df48181d5664426c5f4446fd48 /kubernetes/cds/components/cds-blueprints-processor/templates/deployment.yaml | |
parent | e8c5c68a932eb38b2d9f8ef8160ccffdc7a00a89 (diff) |
[CDS] Add startup probe
When cds runs in cluster mode it needs longer startup time.
Also bump image tags to 1.1.4, and change defaults to disable
cluster mode and set replicas=1
Issue-ID: CCSDK-3275
Change-Id: Iec2eaeb2edf0cc2f9b29e35431d0e642e3b6d998
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Diffstat (limited to 'kubernetes/cds/components/cds-blueprints-processor/templates/deployment.yaml')
-rwxr-xr-x | kubernetes/cds/components/cds-blueprints-processor/templates/deployment.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kubernetes/cds/components/cds-blueprints-processor/templates/deployment.yaml b/kubernetes/cds/components/cds-blueprints-processor/templates/deployment.yaml index 9645b20cd2..c2e034204c 100755 --- a/kubernetes/cds/components/cds-blueprints-processor/templates/deployment.yaml +++ b/kubernetes/cds/components/cds-blueprints-processor/templates/deployment.yaml @@ -123,6 +123,16 @@ spec: - containerPort: {{ .Values.service.http.internalPort }} - containerPort: {{ .Values.service.grpc.internalPort }} - containerPort: {{ .Values.service.cluster.internalPort }} + startupProbe: + httpGet: + path: /api/v1/execution-service/health-check + port: {{ .Values.service.http.internalPort }} + httpHeaders: + - name: Authorization + value: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw== + initialDelaySeconds: {{ .Values.startup.initialDelaySeconds }} + failureThreshold: {{ .Values.startup.failureThreshold }} + periodSeconds: {{ .Values.startup.periodSeconds }} # disable liveness probe when breakpoints set in debugger # so K8s doesn't restart unresponsive container {{ if .Values.liveness.enabled }} |