blob: 50296f7ba81896aad0cb271f6e56fe76298d1e0e [file] [log] [blame]
giolekvadd750802021-11-07 13:24:21 +04001apiVersion: v1
2kind: Service
3metadata:
4 name: ui
5 namespace: {{ .Release.Namespace }}
6spec:
7 type: ClusterIP
8 selector:
9 app: ui
10 ports:
11 - name: http
12 port: 80
13 targetPort: http
14 protocol: TCP
15---
16apiVersion: networking.k8s.io/v1
17kind: Ingress
18metadata:
19 name: ui
20 namespace: {{ .Release.Namespace }}
21 annotations:
22 cert-manager.io/cluster-issuer: {{ .Values.ui.certificateIssuer }}
23 acme.cert-manager.io/http01-edit-in-place: "true"
24spec:
25 ingressClassName: {{ .Values.ui.ingressClassName }}
26 tls:
27 - hosts:
28 - accounts-ui.{{ .Values.ui.domain }}
29 secretName: cert-accounts-ui.{{ .Values.ui.domain }}
30 rules:
31 - host: accounts-ui.{{ .Values.ui.domain }}
32 http:
33 paths:
34 - path: /
35 pathType: Prefix
36 backend:
37 service:
38 name: ui
39 port:
40 name: http
41---
42apiVersion: apps/v1
43kind: Deployment
44metadata:
45 name: ui
46 namespace: {{ .Release.Namespace }}
47spec:
48 selector:
49 matchLabels:
50 app: ui
51 replicas: 1
52 template:
53 metadata:
54 labels:
55 app: ui
56 spec:
57 volumes:
58 - name: cert
59 secret:
60 secretName: {{ .Values.ui.nebula.node.secretName }}
61 - name: config
62 configMap:
63 name: {{ .Values.ui.nebula.lighthouse.name }}
64 hostAliases:
65 - ip: "111.0.0.1"
66 hostnames:
67 - "hydra.{{ .Values.ui.internalDomain }}"
68 containers:
69 - name: server
70 image: giolekva/auth-ui:latest
71 imagePullPolicy: Always
72 env:
73 - name: KRATOS_PUBLIC_URL
74 value: "https://accounts.{{ .Values.ui.domain }}"
75 ports:
76 - name: http
77 containerPort: 8080
78 protocol: TCP
79 command:
80 - server
81 - --port=8080
82 - --kratos=https://accounts.{{ .Values.ui.domain }}
83 - --hydra=hydra{{ .Values.ui.internalDomain }}
84 - --email-domain={{ .Values.ui.domain }}
85 # resources:
86 # requests:
87 # memory: "10Mi"
88 # cpu: "10m"
89 # limits:
90 # memory: "20Mi"
91 # cpu: "100m"
92 - name: lighthouse
93 image: giolekva/nebula:latest
94 imagePullPolicy: Always
95 securityContext:
96 capabilities:
97 add:
98 - NET_ADMIN
99 privileged: true
100 ports:
101 - name: lighthouse
102 containerPort: 4247
103 protocol: UDP
104 command:
105 - nebula
106 - --config=/etc/nebula/config/lighthouse.yaml
107 volumeMounts:
108 - name: cert
109 mountPath: /etc/nebula/lighthouse
110 readOnly: true
111 - name: config
112 mountPath: /etc/nebula/config
113 readOnly: true
114---
115apiVersion: lekva.me/v1
116kind: NebulaNode
117metadata:
118 name: {{ .Values.ui.nebula.node.name }}
119 namespace: {{ .Release.Namespace }}
120spec:
121 caName: {{ .Values.ui.nebula.certificateAuthority.name }}
122 caNamespace: {{ .Values.ui.nebula.certificateAuthority.namespace }}
123 ipCidr: {{ .Values.ui.nebula.node.ipCidr }}
124 secretName: {{ .Values.ui.nebula.node.secretName }}