chore: update init-container images and update probes (#23401)
Fixes: [21271](https://github.com/appsmithorg/appsmith/issues/21272) Fixes: [221](https://github.com/appsmithorg/cloud-deployment/issues/221) Fixes: [24020](https://github.com/appsmithorg/appsmith/issues/24020)
This commit is contained in:
parent
da4c80c4ad
commit
82c5c0b580
|
|
@ -11,7 +11,7 @@ sources:
|
||||||
- https://github.com/appsmithorg/appsmith
|
- https://github.com/appsmithorg/appsmith
|
||||||
home: https://www.appsmith.com/
|
home: https://www.appsmith.com/
|
||||||
icon: https://assets.appsmith.com/appsmith-icon.png
|
icon: https://assets.appsmith.com/appsmith-icon.png
|
||||||
version: 2.0.2
|
version: 2.0.3
|
||||||
dependencies:
|
dependencies:
|
||||||
- condition: redis.enabled
|
- condition: redis.enabled
|
||||||
name: redis
|
name: redis
|
||||||
|
|
|
||||||
|
|
@ -26,5 +26,5 @@ Please update your DNS records with your domain by the address. You can use foll
|
||||||
echo "Visit http://127.0.0.1:8080 to use your application"
|
echo "Visit http://127.0.0.1:8080 to use your application"
|
||||||
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
|
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
|
||||||
|
|
||||||
To expose your Appsmith service to be accessible from the Internet, please refer to our docs here https://docs.appsmith.com/setup/kubernetes#expose-appsmith.
|
To expose your Appsmith service to be accessible from the Internet, please refer to our docs here https://docs.appsmith.com/getting-started/setup/installation-guides/kubernetes/publish-appsmith-online.
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -49,16 +49,16 @@ spec:
|
||||||
{{- if ((.Values.initContainer.redis).image) }}
|
{{- if ((.Values.initContainer.redis).image) }}
|
||||||
image: {{ .Values.initContainer.redis.image }}
|
image: {{ .Values.initContainer.redis.image }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
image: "alpine"
|
image: "docker.io/library/redis:6.2-alpine"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command: ['sh', '-c', "apk add redis; until redis-cli -h {{ include "appsmith.fullname" . }}-redis-master.{{.Release.Namespace}}.svc.cluster.local ping; do echo waiting for redis; sleep 2; done"]
|
command: ['sh', '-c', "until redis-cli -h {{ include "appsmith.fullname" . }}-redis-master.{{.Release.Namespace}}.svc.cluster.local ping ; do echo waiting for redis; sleep 2; done"]
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mongodb.enabled }}
|
{{- if .Values.mongodb.enabled }}
|
||||||
- name: mongo-init-container
|
- name: mongo-init-container
|
||||||
{{- if ((.Values.initContainer.mongodb).image) }}
|
{{- if ((.Values.initContainer.mongodb).image) }}
|
||||||
image: {{ .Values.initContainer.mongodb.image }}
|
image: {{ .Values.initContainer.mongodb.image }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
image: "docker.io/bitnami/mongodb:4.4.11-debian-10-r12"
|
image: "docker.io/bitnami/mongodb:5.0.17-debian-11-r5"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command: ['sh', '-c', "until mongo --host appsmith-mongodb.{{.Release.Namespace}}.svc.cluster.local --eval 'db.runCommand({ping:1})' ; do echo waiting for mongo; sleep 2; done"]
|
command: ['sh', '-c', "until mongo --host appsmith-mongodb.{{.Release.Namespace}}.svc.cluster.local --eval 'db.runCommand({ping:1})' ; do echo waiting for mongo; sleep 2; done"]
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -78,19 +78,26 @@ spec:
|
||||||
- name: supervisord
|
- name: supervisord
|
||||||
containerPort: 9001
|
containerPort: 9001
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- $probes := .Values.probes | default dict }}
|
||||||
startupProbe:
|
startupProbe:
|
||||||
# The `livenessProbe` and `readinessProbe` will be disabled until the `startupProbe` is successful.
|
# The `livenessProbe` and `readinessProbe` will be disabled until the `startupProbe` is successful.
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
|
||||||
port: http
|
port: http
|
||||||
|
path: {{ dig "startupProbe" "api" "/api/v1/health" $probes }}
|
||||||
|
failureThreshold: {{ dig "startupProbe" "failureThreshold" 3 $probes }}
|
||||||
|
periodSeconds: {{ dig "startupProbe" "periodSeconds" 60 $probes }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
|
||||||
port: http
|
port: http
|
||||||
|
path: {{ dig "livenessProbe" "api" "/api/v1/health" $probes }}
|
||||||
|
failureThreshold: {{ dig "livenessProbe" "failureThreshold" 3 $probes }}
|
||||||
|
periodSeconds: {{ dig "livenessProbe" "periodSeconds" 60 $probes }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/v1/users/me
|
|
||||||
port: http
|
port: http
|
||||||
|
path: {{ dig "readinessProbe" "api" "/api/v1/health" $probes }}
|
||||||
|
failureThreshold: {{ dig "readinessProbe" "failureThreshold" 3 $probes }}
|
||||||
|
periodSeconds: {{ dig "readinessProbe" "periodSeconds" 60 $probes }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user