github.com/vshn/k8ify@v1.1.2-0.20240502214202-6c9ed3ef0bf4/tests/golden/parts/manifests/mongo-statefulset.yaml (about)

     1  apiVersion: apps/v1
     2  kind: StatefulSet
     3  metadata:
     4    creationTimestamp: null
     5    labels:
     6      k8ify.service: mongo
     7    name: mongo
     8  spec:
     9    selector:
    10      matchLabels:
    11        k8ify.service: mongo
    12    serviceName: ""
    13    template:
    14      metadata:
    15        creationTimestamp: null
    16        labels:
    17          k8ify.service: mongo
    18      spec:
    19        affinity:
    20          podAntiAffinity:
    21            requiredDuringSchedulingIgnoredDuringExecution:
    22            - labelSelector:
    23                matchExpressions:
    24                - key: k8ify.service
    25                  operator: In
    26                  values:
    27                  - mongo
    28              topologyKey: kubernetes.io/hostname
    29        containers:
    30        - image: mongo:4.0
    31          imagePullPolicy: Always
    32          livenessProbe:
    33            failureThreshold: 3
    34            periodSeconds: 30
    35            successThreshold: 1
    36            tcpSocket:
    37              port: 27017
    38            timeoutSeconds: 60
    39          name: mongo
    40          ports:
    41          - containerPort: 27017
    42          resources:
    43            limits:
    44              memory: 8Gi
    45            requests:
    46              cpu: 500m
    47              memory: 4Gi
    48          startupProbe:
    49            failureThreshold: 30
    50            periodSeconds: 10
    51            successThreshold: 1
    52            tcpSocket:
    53              port: 27017
    54            timeoutSeconds: 60
    55          volumeMounts:
    56          - mountPath: /data/db
    57            name: mongodb-data
    58        - image: metrics-sidecar:latest
    59          imagePullPolicy: Always
    60          livenessProbe:
    61            failureThreshold: 3
    62            periodSeconds: 30
    63            successThreshold: 1
    64            tcpSocket:
    65              port: 33000
    66            timeoutSeconds: 60
    67          name: mongo-metrics-sidecar
    68          ports:
    69          - containerPort: 33000
    70          resources:
    71            limits:
    72              cpu: "1"
    73              memory: 256Mi
    74            requests:
    75              cpu: 100m
    76              memory: 256Mi
    77          startupProbe:
    78            failureThreshold: 30
    79            periodSeconds: 10
    80            successThreshold: 1
    81            tcpSocket:
    82              port: 33000
    83            timeoutSeconds: 60
    84          volumeMounts:
    85          - mountPath: /data/db
    86            name: mongodb-data
    87        restartPolicy: Always
    88    updateStrategy: {}
    89    volumeClaimTemplates:
    90    - apiVersion: v1
    91      kind: PersistentVolumeClaim
    92      metadata:
    93        creationTimestamp: null
    94        labels:
    95          k8ify.service: mongo
    96        name: mongodb-data
    97      spec:
    98        accessModes:
    99        - ReadWriteOnce
   100        resources:
   101          requests:
   102            storage: 1Gi
   103      status: {}
   104  status:
   105    availableReplicas: 0
   106    replicas: 0