After-Dark on k3s (lightweight Kubernetes by Rancher)
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 762B

123456789101112131415161718192021222324252627282930313233343536
  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. containers:
  20. - image: jojomi/nginx-static
  21. ports:
  22. - containerPort: 80
  23. name: after-dark-nginx-container
  24. env:
  25. - name: VIRTUAL_HOST
  26. value: "localhost"
  27. volumeMounts:
  28. - mountPath: /var/www
  29. name: output
  30. volumes:
  31. - name: output
  32. hostPath:
  33. # directory location on host
  34. path: /rendered-site
  35. # this field is optional
  36. type: Directory