Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added liveness and readiness - ocean #109

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/port-ocean/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: port-ocean
description: A Helm chart for Port Ocean integrations
type: application
version: 0.1.21
version: 0.1.22
appVersion: "0.1.0"
home: https://getport.io/
sources:
Expand Down
22 changes: 22 additions & 0 deletions charts/port-ocean/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,28 @@ spec:
subPath: cert.crt
readOnly: true
{{- end }}
{{- if (.Values.livenessProbe).enabled}}
livenessProbe:
httpGet:
path: /docs
yairsimantov20 marked this conversation as resolved.
Show resolved Hide resolved
port: {{.Values.service.port}}
initialDelaySeconds: {{ default 30 .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ default 10 .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ default 5 .Values.livenessProbe.timeoutSeconds }}
successThreshold: 1
failureThreshold: {{ default 3 .Values.livenessProbe.failureThreshold }}
{{- end }}
{{- if (.Values.readinessProbe).enabled}}
readinessProbe:
httpGet:
path: /docs
port: {{.Values.service.port}}
initialDelaySeconds: {{ default 30 .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ default 10 .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ default 5 .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ default 2 .Values.readinessProbe.successThreshold }}
failureThreshold: {{ default 3 .Values.readinessProbe.failureThreshold }}
{{- end }}
volumes:
{{- if and .Values.selfSignedCertificate.enabled .Values.selfSignedCertificate.secret.useExistingSecret }}
- name: certificates
Expand Down
42 changes: 29 additions & 13 deletions charts/port-ocean/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ port:
clientSecret: ""
baseUrl: https://api.getport.io

podAnnotations: {}
podAnnotations: { }

extraEnv:
# Example
# - name: HTTPS_PROXY
# value: http://myproxy.com

podSecurityContext: {}
podSecurityContext: { }
# Example
# runAsGroup: 1001
# runAsUser: 1001
# fsGroup: 1001
# fsGroupChangePolicy: "OnRootMismatch"
containerSecurityContext: {}
containerSecurityContext: { }
# Example
# runAsGroup: 1001
# runAsUser: 1001
Expand All @@ -35,19 +35,19 @@ resources:
memory: "1024Mi"
cpu: "500m"

nodeSelector: {}
nodeSelector: { }

tolerations: []
tolerations: [ ]

affinity: {}
affinity: { }

extraLabels: {}
extraLabels: { }

imageRegistry: "ghcr.io/port-labs"

imagePullPolicy: Always

imagePullSecrets: []
imagePullSecrets: [ ]

initializePortResources: true

Expand All @@ -63,16 +63,16 @@ service:
enabled: true
type: ClusterIP
port: 8000
annotations: {}
annotations: { }

ingress:
enabled: false
className: ""
annotations: {}
annotations: { }
host: null
path: /
pathType: Prefix
tls: []
tls: [ ]
# Example
# - secretName: my-secret
# hosts:
Expand All @@ -82,8 +82,8 @@ integration:
identifier: ""
version: ""
type: ""
config: {}
secrets: {}
config: { }
secrets: { }
eventListener:
type: "KAFKA"
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"
Expand All @@ -95,3 +95,19 @@ selfSignedCertificate:
name: ""
key: crt
useExistingSecret: false


livenessProbe:
enabled: true
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3

readinessProbe:
enabled: true
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 2
Loading