2023-12-05 17:22:39 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: cryptpad
|
|
|
|
name: cryptpad
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: cryptpad
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: cryptpad
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- image: cryptpad/cryptpad:version-5.5.0
|
2023-12-05 17:44:05 +00:00
|
|
|
command:
|
|
|
|
- /usr/local/bin/npm
|
|
|
|
- start
|
2023-12-05 17:22:39 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
livenessProbe:
|
|
|
|
failureThreshold: 5
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
|
|
|
tcpSocket:
|
|
|
|
port: http
|
|
|
|
timeoutSeconds: 10
|
|
|
|
name: cryptpad
|
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
name: http
|
|
|
|
protocol: TCP
|
|
|
|
- containerPort: 3001
|
|
|
|
name: http-safe
|
|
|
|
protocol: TCP
|
|
|
|
readinessProbe:
|
|
|
|
failureThreshold: 5
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
|
|
|
tcpSocket:
|
|
|
|
port: http
|
|
|
|
timeoutSeconds: 10
|
|
|
|
terminationMessagePath: /dev/termination-log
|
|
|
|
terminationMessagePolicy: File
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /cryptpad/blob
|
|
|
|
name: blob
|
|
|
|
- mountPath: /cryptpad/block
|
|
|
|
name: block
|
|
|
|
- mountPath: /cryptpad/config
|
|
|
|
name: config
|
|
|
|
- mountPath: /cryptpad/customize
|
|
|
|
name: customize
|
|
|
|
- mountPath: /cryptpad/data
|
|
|
|
name: data
|
|
|
|
- mountPath: /cryptpad/datasource
|
|
|
|
name: datasource
|
|
|
|
- mountPath: /cryptpad/datastore
|
|
|
|
name: datastore
|
|
|
|
volumes:
|
|
|
|
- name: blob
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: cryptpad-blob
|
|
|
|
- name: block
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: cryptpad-block
|
|
|
|
- name: config
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: cryptpad-config
|
|
|
|
- name: customize
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: cryptpad-customize
|
|
|
|
- name: data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: cryptpad-data
|
|
|
|
- name: datasource
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: cryptpad-datasource
|
|
|
|
- name: datastore
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: cryptpad-datastore
|