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
|
||||
home: https://www.appsmith.com/
|
||||
icon: https://assets.appsmith.com/appsmith-icon.png
|
||||
version: 2.0.2
|
||||
version: 2.0.3
|
||||
dependencies:
|
||||
- condition: redis.enabled
|
||||
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"
|
||||
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 }}
|
||||
|
|
|
|||
|
|
@ -49,16 +49,16 @@ spec:
|
|||
{{- if ((.Values.initContainer.redis).image) }}
|
||||
image: {{ .Values.initContainer.redis.image }}
|
||||
{{- else }}
|
||||
image: "alpine"
|
||||
image: "docker.io/library/redis:6.2-alpine"
|
||||
{{- 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 }}
|
||||
{{- if .Values.mongodb.enabled }}
|
||||
- name: mongo-init-container
|
||||
{{- if ((.Values.initContainer.mongodb).image) }}
|
||||
image: {{ .Values.initContainer.mongodb.image }}
|
||||
{{- else }}
|
||||
image: "docker.io/bitnami/mongodb:4.4.11-debian-10-r12"
|
||||
image: "docker.io/bitnami/mongodb:5.0.17-debian-11-r5"
|
||||
{{- 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"]
|
||||
{{- end }}
|
||||
|
|
@ -78,19 +78,26 @@ spec:
|
|||
- name: supervisord
|
||||
containerPort: 9001
|
||||
protocol: TCP
|
||||
{{- $probes := .Values.probes | default dict }}
|
||||
startupProbe:
|
||||
# The `livenessProbe` and `readinessProbe` will be disabled until the `startupProbe` is successful.
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
path: {{ dig "startupProbe" "api" "/api/v1/health" $probes }}
|
||||
failureThreshold: {{ dig "startupProbe" "failureThreshold" 3 $probes }}
|
||||
periodSeconds: {{ dig "startupProbe" "periodSeconds" 60 $probes }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
path: {{ dig "livenessProbe" "api" "/api/v1/health" $probes }}
|
||||
failureThreshold: {{ dig "livenessProbe" "failureThreshold" 3 $probes }}
|
||||
periodSeconds: {{ dig "livenessProbe" "periodSeconds" 60 $probes }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/v1/users/me
|
||||
port: http
|
||||
path: {{ dig "readinessProbe" "api" "/api/v1/health" $probes }}
|
||||
failureThreshold: {{ dig "readinessProbe" "failureThreshold" 3 $probes }}
|
||||
periodSeconds: {{ dig "readinessProbe" "periodSeconds" 60 $probes }}
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user