netmaker-ui.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: netmaker-ui
  6. spec:
  7. replicas: 2
  8. selector:
  9. matchLabels:
  10. app: netmaker-ui
  11. template:
  12. metadata:
  13. labels:
  14. app: netmaker-ui
  15. spec:
  16. containers:
  17. - name: netmaker-ui
  18. image: gravitl/netmaker-ui:v0.14.6
  19. ports:
  20. - containerPort: 443
  21. env:
  22. - name: BACKEND_URL
  23. value: 'https://api.NETMAKER_SUBDOMAIN'
  24. terminationGracePeriodSeconds: 15
  25. ---
  26. apiVersion: v1
  27. kind: Service
  28. metadata:
  29. name: 'netmaker-ui'
  30. spec:
  31. ports:
  32. - port: 80
  33. protocol: TCP
  34. targetPort: 80
  35. selector:
  36. app: 'netmaker-ui'
  37. sessionAffinity: None
  38. type: 'ClusterIP'
  39. # ---
  40. # apiVersion: networking.k8s.io/v1
  41. # kind: Ingress
  42. # metadata:
  43. # name: nm-ui-ingress-nginx
  44. # annotations:
  45. # nginx.ingress.kubernetes.io/rewrite-target: /
  46. # cert-manager.io/cluster-issuer: "letsencrypt-nginx"
  47. # nginx.ingress.kubernetes.io/ssl-redirect: 'true'
  48. # spec:
  49. # ingressClassName: nginx
  50. # tls:
  51. # - hosts:
  52. # - dashboard.NETMAKER_SUBDOMAIN
  53. # secretName: nm-ui-tls
  54. # rules:
  55. # - host: dashboard.NETMAKER_SUBDOMAIN
  56. # http:
  57. # paths:
  58. # - path: /
  59. # pathType: Prefix
  60. # backend:
  61. # service:
  62. # name: netmaker-ui
  63. # port:
  64. # number: 80