89 lines
2.6 KiB
YAML
89 lines
2.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f docker-compose.yml -n listmonk
|
|
kompose.controller.type: statefulset
|
|
kompose.service.expose: listmonk.frytea.com
|
|
kompose.service.expose.ingress-class-name: nginx
|
|
kompose.service.expose.tls-secret: listmonk-frytea-com
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
kompose.volume.size: 1Gi
|
|
kompose.volume.storage-class-name: local-tgz1
|
|
kompose.volume.type: persistentVolumeClaim
|
|
labels:
|
|
io.kompose.service: app
|
|
name: app
|
|
namespace: listmonk
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: app
|
|
serviceName: app
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: app
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: tencent-gz1
|
|
containers:
|
|
- args:
|
|
- sh
|
|
- -c
|
|
- ./listmonk --install --idempotent --yes --config '' && ./listmonk --upgrade --yes --config '' && ./listmonk --config ''
|
|
env:
|
|
- name: LISTMONK_ADMIN_PASSWORD
|
|
value: sotilu,LM2024
|
|
- name: LISTMONK_ADMIN_USER
|
|
value: songtianlun
|
|
- name: LISTMONK_app__address
|
|
value: 0.0.0.0:9000
|
|
- name: LISTMONK_db__database
|
|
value: listmonk
|
|
- name: LISTMONK_db__host
|
|
value: db.listmonk.svc.cluster.local
|
|
- name: LISTMONK_db__max_idle
|
|
value: "25"
|
|
- name: LISTMONK_db__max_lifetime
|
|
value: 300s
|
|
- name: LISTMONK_db__max_open
|
|
value: "25"
|
|
- name: LISTMONK_db__password
|
|
value: listmonk
|
|
- name: LISTMONK_db__port
|
|
value: "5432"
|
|
- name: LISTMONK_db__ssl_mode
|
|
value: disable
|
|
- name: LISTMONK_db__user
|
|
value: listmonk
|
|
- name: TZ
|
|
value: Etc/UTC
|
|
image: listmonk/listmonk:v4.1.0
|
|
name: listmonk-app
|
|
ports:
|
|
- containerPort: 9000
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- mountPath: /listmonk/uploads
|
|
name: app-claim0
|
|
hostname: listmonk.frytea.com
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: app-claim0
|
|
persistentVolumeClaim:
|
|
claimName: app-claim0
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
labels:
|
|
io.kompose.service: app-claim0
|
|
name: app-claim0
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
storageClassName: local-tgz1
|