Skip to content

Commit b31232c

Browse files
Merge pull request #109 from port-labs/PORT-8224-ocean-add-readiness-and-liveness-probe-to-the-helm-chart
Added liveness and readiness - ocean
2 parents 33c8933 + 1663673 commit b31232c

File tree

3 files changed

+52
-14
lines changed

3 files changed

+52
-14
lines changed

charts/port-ocean/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: port-ocean
33
description: A Helm chart for Port Ocean integrations
44
type: application
5-
version: 0.1.21
5+
version: 0.1.22
66
appVersion: "0.1.0"
77
home: https://getport.io/
88
sources:

charts/port-ocean/templates/deployment.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,28 @@ spec:
6363
subPath: cert.crt
6464
readOnly: true
6565
{{- end }}
66+
{{- if (.Values.livenessProbe).enabled}}
67+
livenessProbe:
68+
httpGet:
69+
path: /docs
70+
port: {{.Values.service.port}}
71+
initialDelaySeconds: {{ default 30 .Values.livenessProbe.initialDelaySeconds }}
72+
periodSeconds: {{ default 10 .Values.livenessProbe.periodSeconds }}
73+
timeoutSeconds: {{ default 5 .Values.livenessProbe.timeoutSeconds }}
74+
successThreshold: 1
75+
failureThreshold: {{ default 3 .Values.livenessProbe.failureThreshold }}
76+
{{- end }}
77+
{{- if (.Values.readinessProbe).enabled}}
78+
readinessProbe:
79+
httpGet:
80+
path: /docs
81+
port: {{.Values.service.port}}
82+
initialDelaySeconds: {{ default 30 .Values.readinessProbe.initialDelaySeconds }}
83+
periodSeconds: {{ default 10 .Values.readinessProbe.periodSeconds }}
84+
timeoutSeconds: {{ default 5 .Values.readinessProbe.timeoutSeconds }}
85+
successThreshold: {{ default 2 .Values.readinessProbe.successThreshold }}
86+
failureThreshold: {{ default 3 .Values.readinessProbe.failureThreshold }}
87+
{{- end }}
6688
volumes:
6789
{{- if and .Values.selfSignedCertificate.enabled .Values.selfSignedCertificate.secret.useExistingSecret }}
6890
- name: certificates

charts/port-ocean/values.yaml

+29-13
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ port:
66
clientSecret: ""
77
baseUrl: https://api.getport.io
88

9-
podAnnotations: {}
9+
podAnnotations: { }
1010

1111
extraEnv:
1212
# Example
1313
# - name: HTTPS_PROXY
1414
# value: http://myproxy.com
1515

16-
podSecurityContext: {}
16+
podSecurityContext: { }
1717
# Example
1818
# runAsGroup: 1001
1919
# runAsUser: 1001
2020
# fsGroup: 1001
2121
# fsGroupChangePolicy: "OnRootMismatch"
22-
containerSecurityContext: {}
22+
containerSecurityContext: { }
2323
# Example
2424
# runAsGroup: 1001
2525
# runAsUser: 1001
@@ -35,19 +35,19 @@ resources:
3535
memory: "1024Mi"
3636
cpu: "500m"
3737

38-
nodeSelector: {}
38+
nodeSelector: { }
3939

40-
tolerations: []
40+
tolerations: [ ]
4141

42-
affinity: {}
42+
affinity: { }
4343

44-
extraLabels: {}
44+
extraLabels: { }
4545

4646
imageRegistry: "ghcr.io/port-labs"
4747

4848
imagePullPolicy: Always
4949

50-
imagePullSecrets: []
50+
imagePullSecrets: [ ]
5151

5252
initializePortResources: true
5353

@@ -63,16 +63,16 @@ service:
6363
enabled: true
6464
type: ClusterIP
6565
port: 8000
66-
annotations: {}
66+
annotations: { }
6767

6868
ingress:
6969
enabled: false
7070
className: ""
71-
annotations: {}
71+
annotations: { }
7272
host: null
7373
path: /
7474
pathType: Prefix
75-
tls: []
75+
tls: [ ]
7676
# Example
7777
# - secretName: my-secret
7878
# hosts:
@@ -82,8 +82,8 @@ integration:
8282
identifier: ""
8383
version: ""
8484
type: ""
85-
config: {}
86-
secrets: {}
85+
config: { }
86+
secrets: { }
8787
eventListener:
8888
type: "KAFKA"
8989
brokers: "b-1-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196,b-2-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196,b-3-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196"
@@ -95,3 +95,19 @@ selfSignedCertificate:
9595
name: ""
9696
key: crt
9797
useExistingSecret: false
98+
99+
100+
livenessProbe:
101+
enabled: true
102+
initialDelaySeconds: 30
103+
periodSeconds: 10
104+
timeoutSeconds: 5
105+
failureThreshold: 3
106+
107+
readinessProbe:
108+
enabled: true
109+
initialDelaySeconds: 30
110+
periodSeconds: 10
111+
timeoutSeconds: 5
112+
failureThreshold: 3
113+
successThreshold: 2

0 commit comments

Comments
 (0)