github.com/vshn/k8ify@v1.1.2-0.20240502214202-6c9ed3ef0bf4/tests/golden/demo/manifests/mongo-statefulset.yaml (about) 1 apiVersion: apps/v1 2 kind: StatefulSet 3 metadata: 4 annotations: 5 helloWorld: Hello World! 6 k8up.io/file-extension: defaultvalue 7 creationTimestamp: null 8 labels: 9 k8ify.service: mongo 10 name: mongo 11 spec: 12 selector: 13 matchLabels: 14 k8ify.service: mongo 15 serviceName: "" 16 template: 17 metadata: 18 annotations: 19 helloWorld: Hello World! 20 k8up.io/backupcommand: sh -c 'mongodump --username=$MONGODB_ROOT_USER --password=$MONGODB_ROOT_PASSWORD 21 --archive' 22 k8up.io/file-extension: .archive 23 creationTimestamp: null 24 labels: 25 k8ify.service: mongo 26 spec: 27 affinity: 28 podAntiAffinity: 29 requiredDuringSchedulingIgnoredDuringExecution: 30 - labelSelector: 31 matchExpressions: 32 - key: k8ify.service 33 operator: In 34 values: 35 - mongo 36 topologyKey: kubernetes.io/hostname 37 containers: 38 - image: mongo:4.0 39 imagePullPolicy: Always 40 livenessProbe: 41 failureThreshold: 3 42 periodSeconds: 30 43 successThreshold: 1 44 tcpSocket: 45 port: 27017 46 timeoutSeconds: 60 47 name: mongo 48 ports: 49 - containerPort: 27017 50 resources: 51 limits: 52 memory: 8Gi 53 requests: 54 cpu: 500m 55 memory: 4Gi 56 startupProbe: 57 failureThreshold: 30 58 periodSeconds: 10 59 successThreshold: 1 60 tcpSocket: 61 port: 27017 62 timeoutSeconds: 60 63 volumeMounts: 64 - mountPath: /data/db 65 name: mongodb-data 66 restartPolicy: Always 67 updateStrategy: {} 68 volumeClaimTemplates: 69 - apiVersion: v1 70 kind: PersistentVolumeClaim 71 metadata: 72 creationTimestamp: null 73 labels: 74 k8ify.service: mongo 75 name: mongodb-data 76 spec: 77 accessModes: 78 - ReadWriteOnce 79 resources: 80 requests: 81 storage: 1Gi 82 status: {} 83 status: 84 availableReplicas: 0 85 replicas: 0