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-k3s-hugo.yaml 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: after-dark-hugo-64
  5. labels:
  6. tier: backend
  7. spec:
  8. replicas: 1
  9. selector:
  10. matchLabels:
  11. app: after-dark-hugo
  12. tier: backend
  13. template:
  14. metadata:
  15. labels:
  16. app: after-dark-hugo
  17. tier: backend
  18. spec:
  19. containers:
  20. - image: tkalpakid/after-dark-themed-hugo-64-v2
  21. name: after-dark-hugo-container
  22. ports:
  23. - containerPort: 1313
  24. env:
  25. - name: HUGO_WATCH # changed to real time build
  26. value: "true"
  27. volumeMounts:
  28. - name: site-content
  29. mountPath: /my-content
  30. - name: rendered-site
  31. mountPath: /output
  32. - name: repo
  33. mountPath: /after-dark
  34. initContainers:
  35. - name: init-repo
  36. image: alpine/git
  37. command:
  38. - git
  39. - "clone"
  40. - "https://git.habd.as/teowood/after-dark.git"
  41. - "/after-dark/."
  42. volumeMounts:
  43. - name: repo
  44. mountPath: /after-dark
  45. volumes:
  46. - name: repo
  47. emptyDir: {}
  48. - name: site-content
  49. hostPath:
  50. path: /my-content
  51. type: DirectoryOrCreate
  52. - name: rendered-site
  53. hostPath:
  54. path: /rendered-site
  55. type: DirectoryOrCreate