146 lines
4.2 KiB
YAML
146 lines
4.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/instance: release-name
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: appsmith
|
|
appsmith.sh/chart: appsmith-3.6.4
|
|
name: appsmith-appsmith
|
|
namespace: appsmith
|
|
spec:
|
|
persistentVolumeClaimRetentionPolicy:
|
|
whenDeleted: Retain
|
|
whenScaled: Retain
|
|
podManagementPolicy: OrderedReady
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/instance: release-name
|
|
app.kubernetes.io/name: appsmith
|
|
serviceName: appsmith-appsmith
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app.kubernetes.io/instance: release-name
|
|
app.kubernetes.io/name: appsmith
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: APPSMITH_ENABLE_EMBEDDED_DB
|
|
value: "0"
|
|
- name: JGROUPS_DISCOVERY_PROTOCOL
|
|
value: kubernetes.KUBE_PING
|
|
- name: APPSMITH_HEADLESS_SVC
|
|
value: appsmith-appsmith-headless
|
|
envFrom:
|
|
- configMapRef:
|
|
name: appsmith-appsmith
|
|
image: index.docker.io/appsmith/appsmith-ee:latest
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /api/v1/health
|
|
port: 80
|
|
scheme: HTTP
|
|
periodSeconds: 60
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
name: appsmith
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
protocol: TCP
|
|
- containerPort: 443
|
|
name: https
|
|
protocol: TCP
|
|
- containerPort: 2019
|
|
name: metrics
|
|
protocol: TCP
|
|
readinessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /api/v1/health
|
|
port: 80
|
|
scheme: HTTP
|
|
periodSeconds: 60
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 3000Mi
|
|
startupProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /api/v1/health
|
|
port: 80
|
|
scheme: HTTP
|
|
periodSeconds: 60
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /appsmith-stacks
|
|
name: data
|
|
dnsPolicy: ClusterFirst
|
|
initContainers:
|
|
- command:
|
|
- sh
|
|
- -c
|
|
- until redis-cli -h appsmith-redis-master.appsmith.svc.cluster.local ping
|
|
; do echo waiting for redis; sleep 2; done
|
|
image: docker.io/redis:7.0.15
|
|
imagePullPolicy: IfNotPresent
|
|
name: redis-init-container
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
- command:
|
|
- sh
|
|
- -c
|
|
- until mongosh --host appsmith-mongodb.appsmith.svc.cluster.local --eval
|
|
'db.runCommand({ping:1})' ; do echo waiting for mongo; sleep 2; done
|
|
image: docker.io/bitnamilegacy/mongodb:6.0.13
|
|
imagePullPolicy: IfNotPresent
|
|
name: mongo-init-container
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
- command:
|
|
- sh
|
|
- -c
|
|
- until pg_isready -U $postgresuser -d $postgresdb -h appsmith-postgresql.appsmith.svc.cluster.local;
|
|
do echo waiting for postgresql; sleep 2; done
|
|
image: docker.io/bitnamilegacy/postgresql:14.5.0-debian-11-r21
|
|
imagePullPolicy: IfNotPresent
|
|
name: psql-init-container
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
serviceAccount: appsmith-appsmith
|
|
serviceAccountName: appsmith-appsmith
|
|
terminationGracePeriodSeconds: 30
|
|
updateStrategy:
|
|
rollingUpdate:
|
|
partition: 0
|
|
type: RollingUpdate
|
|
volumeClaimTemplates:
|
|
- apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
creationTimestamp: null
|
|
name: data
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
storageClassName: longhorn-fast
|
|
volumeMode: Filesystem
|
|
status:
|
|
phase: Pending
|