github.com/vshn/k8ify@v1.1.2-0.20240502214202-6c9ed3ef0bf4/tests/golden/parts/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 replicas: 2 11 selector: 12 matchLabels: 13 k8ify.ref-slug: oasp 14 k8ify.service: nginx-frontend 15 strategy: 16 type: Recreate 17 template: 18 metadata: 19 creationTimestamp: null 20 labels: 21 k8ify.ref-slug: oasp 22 k8ify.service: nginx-frontend 23 spec: 24 affinity: 25 podAntiAffinity: 26 requiredDuringSchedulingIgnoredDuringExecution: 27 - labelSelector: 28 matchExpressions: 29 - key: k8ify.service 30 operator: In 31 values: 32 - nginx-frontend 33 topologyKey: kubernetes.io/hostname 34 containers: 35 - envFrom: 36 - secretRef: 37 name: nginx-frontend-oasp-env 38 image: nginx-frontend:prod 39 imagePullPolicy: Always 40 livenessProbe: 41 failureThreshold: 3 42 periodSeconds: 30 43 successThreshold: 1 44 tcpSocket: 45 port: 80 46 timeoutSeconds: 60 47 name: nginx-frontend-oasp 48 ports: 49 - containerPort: 80 50 resources: 51 limits: 52 cpu: "10" 53 memory: 2Gi 54 requests: 55 cpu: "1" 56 memory: 2Gi 57 startupProbe: 58 failureThreshold: 30 59 periodSeconds: 10 60 successThreshold: 1 61 tcpSocket: 62 port: 80 63 timeoutSeconds: 60 64 volumeMounts: 65 - mountPath: /data/web 66 name: webdata 67 - envFrom: 68 - secretRef: 69 name: php-backend-oasp-env 70 image: php-backend:prod 71 imagePullPolicy: Always 72 livenessProbe: 73 failureThreshold: 3 74 periodSeconds: 30 75 successThreshold: 1 76 tcpSocket: 77 port: 4480 78 timeoutSeconds: 60 79 name: php-backend-oasp 80 ports: 81 - containerPort: 4480 82 resources: 83 limits: 84 cpu: "20" 85 memory: 4Gi 86 requests: 87 cpu: "2" 88 memory: 4Gi 89 startupProbe: 90 failureThreshold: 30 91 periodSeconds: 10 92 successThreshold: 1 93 tcpSocket: 94 port: 4480 95 timeoutSeconds: 60 96 volumeMounts: 97 - mountPath: /data/sessions 98 name: sessions 99 - mountPath: /data/web 100 name: webdata 101 restartPolicy: Always 102 volumes: 103 - name: sessions 104 persistentVolumeClaim: 105 claimName: sessions-oasp 106 - name: webdata 107 persistentVolumeClaim: 108 claimName: webdata-oasp 109 status: {}