Skip to content

release: Added liveness-readiness in microservices #6502

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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/devtron/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords:
- argocd
- Hyperion
engine: gotpl
version: 0.22.88
version: 0.22.89
sources:
- https://github.com/devtron-labs/charts
dependencies:
Expand Down
9 changes: 9 additions & 0 deletions charts/devtron/devtron-bom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ components:
registry: ""
image: "dashboard:a400ce3c-690-31030"
imagePullPolicy: IfNotPresent
healthPort: 8080
devtron:
registry: ""
image: "hyperion:846c2d90-280-31082"
Expand All @@ -51,6 +52,7 @@ components:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1001
healthPort: 8080
ciRunner:
registry: ""
image: "ci-runner:d79b15c6-138-31014"
Expand All @@ -64,6 +66,7 @@ components:
registry: ""
image: "kubelink:ccd98a22-564-31008"
imagePullPolicy: IfNotPresent
healthPort: 50052
configs:
ENABLE_HELM_RELEASE_CACHE: "true"
USE_CUSTOM_HTTP_TRANSPORT: "true"
Expand All @@ -90,6 +93,7 @@ components:
registry: ""
image: "kubewatch:34abb17d-419-31007"
imagePullPolicy: IfNotPresent
healthPort: 8080
configs:
devtroncd_NAMESPACE: "devtron-ci"
USE_CUSTOM_HTTP_TRANSPORT: "true"
Expand Down Expand Up @@ -132,6 +136,7 @@ components:
dbconfig:
secretName: postgresql-postgresql
keyName: postgresql-password
healthPort: 8080
# Values for lens
lens:
registry: ""
Expand All @@ -148,6 +153,7 @@ components:
dbconfig:
secretName: postgresql-postgresql
keyName: postgresql-password
healthPort: 8080
# Change below values for nats
nats:
registry: ""
Expand Down Expand Up @@ -212,6 +218,7 @@ workflowController:
security:
imageScanner:
image: "image-scanner:34abb17d-141-31016"
healthPort: 8080
configs:
TRIVY_DB_REPOSITORY: mirror.gcr.io/aquasec/trivy-db
TRIVY_JAVA_DB_REPOSITORY: mirror.gcr.io/aquasec/trivy-java-db
Expand All @@ -222,6 +229,7 @@ security:
# Values for notifier integration
notifier:
image: "notifier:c2173311-372-31015"
healthPort: 3000
minio:
image: "minio:RELEASE.2021-02-14T04-01-33Z"
mbImage: "minio-mc:RELEASE.2021-02-14T04-28-06Z"
Expand Down Expand Up @@ -263,6 +271,7 @@ devtronEnterprise:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1001
healthPort: 8080
scoop:
enabled: false
registry: ""
Expand Down
4 changes: 2 additions & 2 deletions charts/devtron/templates/casbin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
failureThreshold: 3
httpGet:
path: /health
port: 8080
port: {{ $.Values.devtronEnterprise.casbin.healthPort}}
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
Expand All @@ -64,7 +64,7 @@ spec:
failureThreshold: 3
httpGet:
path: /health
port: 8080
port: {{ $.Values.devtronEnterprise.casbin.healthPort}}
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
Expand Down
20 changes: 20 additions & 0 deletions charts/devtron/templates/dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,26 @@ spec:
securityContext:
{{- toYaml $.Values.global.containerSecurityContext | nindent 12 }}
{{- end }}
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: {{ $.Values.components.dashboard.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: {{ $.Values.components.dashboard.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
ports:
- name: app
containerPort: 8080
Expand Down
20 changes: 20 additions & 0 deletions charts/devtron/templates/devtron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,26 @@ spec:
- -c
- ' curl -X POST -H "Content-Type: application/json" -d ''{"eventType":
"SIG_TERM"}'' localhost:8080/orchestrator/telemetry/summary'
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.devtron.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.devtron.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
ports:
- name: devtron
containerPort: 8080
Expand Down
20 changes: 20 additions & 0 deletions charts/devtron/templates/gitsensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,26 @@ spec:
volumeMounts:
- name: git-volume
mountPath: /git-base/
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.gitsensor.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.gitsensor.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
env:
- name: DEVTRON_APP_NAME
value: git-sensor
Expand Down
20 changes: 20 additions & 0 deletions charts/devtron/templates/kubelink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,26 @@ spec:
name: {{ .dbconfig.secretName }}
key: {{ .dbconfig.keyName }}
{{- end }}
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.kubelink.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.kubelink.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
envFrom:
- configMapRef:
name: kubelink-cm
Expand Down
20 changes: 20 additions & 0 deletions charts/devtron/templates/kubewatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,26 @@ spec:
- name: app
containerPort: 3000
protocol: TCP
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.kubewatch.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.kubewatch.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
env:
- name: POD_NAME
valueFrom:
Expand Down
20 changes: 20 additions & 0 deletions charts/devtron/templates/lens.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,26 @@ spec:
securityContext:
{{- toYaml $.Values.global.containerSecurityContext | nindent 12 }}
{{- end }}
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.lens.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.components.lens.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
ports:
- name: app
containerPort: 8080
Expand Down
21 changes: 20 additions & 1 deletion charts/devtron/templates/notifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,26 @@ spec:
securityContext:
{{- toYaml $.Values.global.containerSecurityContext | nindent 12 }}
{{- end }}

livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.notifier.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: {{ $.Values.notifier.healthPort}}
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
ports:
- name: app
containerPort: 3000
Expand Down
4 changes: 4 additions & 0 deletions charts/devtron/templates/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ spec:
secretKeyRef:
key: postgresql-password
name: postgresql-postgresql
- name: POSTGRES_HOST_AUTH_METHOD
value: "md5"
- name: POSTGRES_INITDB_ARGS
value: "--auth-local=md5"
envFrom:
- secretRef:
name: postgresql-postgresql
Expand Down
9 changes: 9 additions & 0 deletions charts/devtron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ components:
registry: ""
image: "dashboard:a400ce3c-690-31030"
imagePullPolicy: IfNotPresent
healthPort: 8080
devtron:
registry: ""
image: "hyperion:846c2d90-280-31082"
cicdImage: "devtron:846c2d90-434-31081"
imagePullPolicy: IfNotPresent
customOverrides: {}
healthPort: 8080
podSecurityContext:
fsGroup: 1001
runAsGroup: 1001
Expand Down Expand Up @@ -133,6 +135,7 @@ components:
registry: ""
image: "kubelink:ccd98a22-564-31008"
imagePullPolicy: IfNotPresent
healthPort: 50052
podSecurityContext:
fsGroup: 1001
runAsGroup: 1001
Expand All @@ -159,6 +162,7 @@ components:
registry: ""
image: "kubewatch:34abb17d-419-31007"
imagePullPolicy: IfNotPresent
healthPort: 8080
configs:
devtroncd_NAMESPACE: "devtron-ci"
USE_CUSTOM_HTTP_TRANSPORT: "true"
Expand Down Expand Up @@ -194,6 +198,7 @@ components:
enabled: false
persistence:
volumeSize: 2Gi
healthPort: 8080
configs:
PG_ADDR: postgresql-postgresql.devtroncd
PG_USER: postgres
Expand All @@ -210,6 +215,7 @@ components:
imagePullPolicy: IfNotPresent
secrets: {}
resources: {}
healthPort: 8080
configs:
GIT_SENSOR_PROTOCOL: GRPC
GIT_SENSOR_URL: git-sensor-service.devtroncd:90
Expand Down Expand Up @@ -409,6 +415,7 @@ security:
enabled: false
imageScanner:
image: "image-scanner:34abb17d-141-31016"
healthPort: 8080
configs:
TRIVY_DB_REPOSITORY: mirror.gcr.io/aquasec/trivy-db
TRIVY_JAVA_DB_REPOSITORY: mirror.gcr.io/aquasec/trivy-java-db
Expand All @@ -434,6 +441,7 @@ notifier:
DB_PORT: "5432"
DB_USER: postgres
secrets: {}
healthPort: 3000
dbconfig:
secretName: postgresql-postgresql
keyName: postgresql-password
Expand Down Expand Up @@ -484,6 +492,7 @@ devtronEnterprise:
registry: ""
image: "casbin:f6ff5f74-064b67e5-462-30822"
imagePullPolicy: IfNotPresent
healthPort: 8080
configs:
PG_ADDR: postgresql-postgresql.devtroncd
PG_DATABASE: casbin
Expand Down