dashy.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: dashy
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. name: dashy
  10. template:
  11. metadata:
  12. labels:
  13. nginx: backend
  14. name: dashy
  15. spec:
  16. containers:
  17. - name: dashy
  18. image: lissy93/dashy
  19. volumeMounts:
  20. - name: config-volume
  21. mountPath: /app/user-data
  22. ports:
  23. - containerPort: 8080
  24. name: http
  25. volumes:
  26. - name: config-volume
  27. configMap:
  28. name: dashy
  29. items:
  30. - key: conf.yml
  31. path: conf.yml
  32. ---
  33. apiVersion: v1
  34. kind: Service
  35. metadata:
  36. name: dashy
  37. spec:
  38. type: ClusterIP
  39. ipFamilyPolicy: PreferDualStack
  40. selector:
  41. name: dashy
  42. ports:
  43. - protocol: TCP
  44. port: 80
  45. targetPort: 8080
  46. name: http
  47. ---
  48. apiVersion: networking.k8s.io/v1
  49. kind: Ingress
  50. metadata:
  51. name: dashy-ingress
  52. annotations:
  53. cert-manager.io/cluster-issuer: "letsencrypt"
  54. acme.cert-manager.io/http01-edit-in-place: "true"
  55. nginx.ingress.kubernetes.io/client-body-buffer-size: "500m"
  56. nginx.ingress.kubernetes.io/proxy-connect-timeout: "60s"
  57. nginx.ingress.kubernetes.io/proxy-read-timeout: "60s"
  58. nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
  59. spec:
  60. tls:
  61. - hosts:
  62. - dashy.dodges.it
  63. secretName: dashy-le-secret
  64. rules:
  65. - host: dashy.dodges.it
  66. http:
  67. paths:
  68. - path: /
  69. pathType: Prefix
  70. backend:
  71. service:
  72. name: dashy
  73. port:
  74. number: 80
  75. ingressClassName: nginx