github.com/argoproj/argo-cd@v1.8.7/util/kustomize/testdata/kustomization_yaml/statefulset.yaml (about) 1 apiVersion: apps/v1 2 kind: StatefulSet 3 metadata: 4 name: web 5 spec: 6 selector: 7 matchLabels: 8 app: nginx # has to match .spec.template.metadata.labels 9 serviceName: "nginx" 10 replicas: 3 # by default is 1 11 template: 12 metadata: 13 labels: 14 app: nginx # has to match .spec.selector.matchLabels 15 spec: 16 terminationGracePeriodSeconds: 10 17 containers: 18 - name: nginx 19 image: k8s.gcr.io/nginx-slim:0.8 20 ports: 21 - containerPort: 80 22 name: web 23 volumeMounts: 24 - name: www 25 mountPath: /usr/share/nginx/html 26 volumeClaimTemplates: 27 - metadata: 28 name: www 29 spec: 30 accessModes: [ "ReadWriteOnce" ] 31 storageClassName: "my-storage-class" 32 resources: 33 requests: 34 storage: 1Gi