github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/examples/variables/nginx-deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: nginx 5 namespace: nginx 6 labels: 7 app: nginx 8 spec: 9 selector: 10 matchLabels: 11 app: nginx 12 replicas: 1 13 template: 14 metadata: 15 labels: 16 app: nginx 17 spec: 18 containers: 19 - name: nginx 20 image: nginx:###JACKAL_CONST_NGINX_VERSION### 21 ports: 22 - containerPort: 80 23 name: http 24 resources: 25 limits: 26 cpu: 500m 27 memory: 512Mi 28 volumeMounts: 29 - name: nginx-config 30 mountPath: /etc/nginx/conf.d/01_http.conf 31 subPath: 01_http.conf 32 - name: nginx-config 33 mountPath: /usr/share/nginx/html/index.html 34 subPath: index.html 35 volumes: 36 - name: nginx-config 37 configMap: 38 name: nginx-configmap