dashy.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.org/client-max-body-size: "500m"
  56. nginx.org/proxy-connect-timeout: "60s"
  57. nginx.org/proxy-read-timeout: "60s"
  58. # Uncomment to allow solving HTTP01 challenge
  59. ingress.kubernetes.io/ssl-redirect: "true"
  60. nginx.org/redirect-to-https: "true"
  61. spec:
  62. tls:
  63. - hosts:
  64. - dashy.dodges.it
  65. secretName: dashy-le-secret
  66. rules:
  67. - host: dashy.dodges.it
  68. http:
  69. paths:
  70. - path: /
  71. pathType: Prefix
  72. backend:
  73. service:
  74. name: dashy
  75. port:
  76. number: 80
  77. ingressClassName: nginx