You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

after-dark-nginx.yaml 1.2KB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: after-dark-nginx
  5. labels:
  6. tier: frontend
  7. spec:
  8. replicas: 1
  9. selector:
  10. matchLabels:
  11. app: after-dark-nginx
  12. tier: frontend
  13. template:
  14. metadata:
  15. labels:
  16. app: after-dark-nginx
  17. tier: frontend
  18. spec:
  19. affinity:
  20. podAffinity:
  21. requiredDuringSchedulingIgnoredDuringExecution:
  22. - labelSelector:
  23. matchExpressions:
  24. - key: app
  25. operator: In
  26. values:
  27. - after-dark-hugo
  28. topologyKey: "kubernetes.io/hostname"
  29. containers:
  30. - image: tkalpakid/after-dark-nginx-64
  31. ports:
  32. - containerPort: 80
  33. name: after-dark-nginx-container
  34. env:
  35. - name: VIRTUAL_HOST
  36. value: "localhost"
  37. volumeMounts:
  38. - mountPath: /var/www
  39. name: output
  40. #- mountPath: /etc/nginx/sites-enabled
  41. # name: default-site
  42. volumes:
  43. - name: output
  44. hostPath:
  45. # directory location on host
  46. path: /rendered-site
  47. # this field is optional
  48. type: Directory
  49. #- name: default-site
  50. # configMap:
  51. # name: default-site