github.com/vshn/k8ify@v1.1.2-0.20240502214202-6c9ed3ef0bf4/tests/golden/parts-ingress/manifests/nginx-frontend-oasp-deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    creationTimestamp: null
     5    labels:
     6      k8ify.ref-slug: oasp
     7      k8ify.service: nginx-frontend
     8    name: nginx-frontend-oasp
     9  spec:
    10    selector:
    11      matchLabels:
    12        k8ify.ref-slug: oasp
    13        k8ify.service: nginx-frontend
    14    strategy:
    15      type: Recreate
    16    template:
    17      metadata:
    18        creationTimestamp: null
    19        labels:
    20          k8ify.ref-slug: oasp
    21          k8ify.service: nginx-frontend
    22      spec:
    23        affinity:
    24          podAntiAffinity:
    25            requiredDuringSchedulingIgnoredDuringExecution:
    26            - labelSelector:
    27                matchExpressions:
    28                - key: k8ify.service
    29                  operator: In
    30                  values:
    31                  - nginx-frontend
    32              topologyKey: kubernetes.io/hostname
    33        containers:
    34        - image: nginx-frontend:prod
    35          imagePullPolicy: Always
    36          livenessProbe:
    37            failureThreshold: 3
    38            periodSeconds: 30
    39            successThreshold: 1
    40            tcpSocket:
    41              port: 80
    42            timeoutSeconds: 60
    43          name: nginx-frontend-oasp
    44          ports:
    45          - containerPort: 80
    46          resources: {}
    47          startupProbe:
    48            failureThreshold: 30
    49            periodSeconds: 10
    50            successThreshold: 1
    51            tcpSocket:
    52              port: 80
    53            timeoutSeconds: 60
    54        - image: php-backend:prod
    55          imagePullPolicy: Always
    56          livenessProbe:
    57            failureThreshold: 3
    58            periodSeconds: 30
    59            successThreshold: 1
    60            tcpSocket:
    61              port: 4480
    62            timeoutSeconds: 60
    63          name: php-backend-oasp
    64          ports:
    65          - containerPort: 4480
    66          resources: {}
    67          startupProbe:
    68            failureThreshold: 30
    69            periodSeconds: 10
    70            successThreshold: 1
    71            tcpSocket:
    72              port: 4480
    73            timeoutSeconds: 60
    74        restartPolicy: Always
    75  status: {}