blob: e16434d4cedbb4e84fe8d2ce38a96cac60ff653f [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 }}
Giorgi Lekveishvilia624b842023-05-31 14:05:16 +040021 annotations:
22 acme.cert-manager.io/http01-edit-in-place: "true"
23 cert-manager.io/cluster-issuer: {{ .Values.ui.certificateIssuer }}
giolekvadd750802021-11-07 13:24:21 +040024spec:
25 ingressClassName: {{ .Values.ui.ingressClassName }}
26 tls:
27 - hosts:
28 - accounts-ui.{{ .Values.ui.domain }}
giolekva11881b52021-11-27 16:51:58 +040029 secretName: cert-accounts-ui.{{ .Values.ui.domain }}
giolekvadd750802021-11-07 13:24:21 +040030 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:
giolekvadd750802021-11-07 13:24:21 +040057 containers:
58 - name: server
59 image: giolekva/auth-ui:latest
60 imagePullPolicy: Always
61 env:
62 - name: KRATOS_PUBLIC_URL
63 value: "https://accounts.{{ .Values.ui.domain }}"
64 ports:
65 - name: http
66 containerPort: 8080
67 protocol: TCP
68 command:
69 - server
70 - --port=8080
71 - --kratos=https://accounts.{{ .Values.ui.domain }}
Giorgi Lekveishvilif096abb2023-06-15 16:23:14 +040072 - --hydra={{ .Values.ui.hydra }}
giolekvadd750802021-11-07 13:24:21 +040073 - --email-domain={{ .Values.ui.domain }}