blob: 012cabaa17b6c8166f3d573c5aaa3adb4f423812 [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---
Giorgi Lekveishvilifedd0062023-12-21 10:52:49 +040016apiVersion: v1
17kind: Service
18metadata:
19 name: api
20 namespace: {{ .Release.Namespace }}
21spec:
22 type: ClusterIP
23 selector:
24 app: ui
25 ports:
26 - name: http
27 port: 80
28 targetPort: api
29 protocol: TCP
30---
giolekvadd750802021-11-07 13:24:21 +040031apiVersion: networking.k8s.io/v1
32kind: Ingress
33metadata:
34 name: ui
35 namespace: {{ .Release.Namespace }}
Giorgi Lekveishvilia624b842023-05-31 14:05:16 +040036 annotations:
37 acme.cert-manager.io/http01-edit-in-place: "true"
38 cert-manager.io/cluster-issuer: {{ .Values.ui.certificateIssuer }}
giolekvadd750802021-11-07 13:24:21 +040039spec:
40 ingressClassName: {{ .Values.ui.ingressClassName }}
41 tls:
42 - hosts:
43 - accounts-ui.{{ .Values.ui.domain }}
giolekva11881b52021-11-27 16:51:58 +040044 secretName: cert-accounts-ui.{{ .Values.ui.domain }}
giolekvadd750802021-11-07 13:24:21 +040045 rules:
46 - host: accounts-ui.{{ .Values.ui.domain }}
47 http:
48 paths:
49 - path: /
50 pathType: Prefix
51 backend:
52 service:
53 name: ui
54 port:
55 name: http
56---
57apiVersion: apps/v1
58kind: Deployment
59metadata:
60 name: ui
61 namespace: {{ .Release.Namespace }}
62spec:
63 selector:
64 matchLabels:
65 app: ui
66 replicas: 1
67 template:
68 metadata:
69 labels:
70 app: ui
71 spec:
giolekvadd750802021-11-07 13:24:21 +040072 containers:
73 - name: server
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040074 image: {{ .Values.ui.image.repository }}:{{ .Values.ui.image.tag }}
75 imagePullPolicy: {{ .Values.ui.image.pullPolicy }}
giolekvadd750802021-11-07 13:24:21 +040076 env:
77 - name: KRATOS_PUBLIC_URL
78 value: "https://accounts.{{ .Values.ui.domain }}"
79 ports:
80 - name: http
81 containerPort: 8080
82 protocol: TCP
Giorgi Lekveishvilifedd0062023-12-21 10:52:49 +040083 - name: api
84 containerPort: 8081
85 protocol: TCP
giolekvadd750802021-11-07 13:24:21 +040086 command:
87 - server
88 - --port=8080
89 - --kratos=https://accounts.{{ .Values.ui.domain }}
Giorgi Lekveishvilif096abb2023-06-15 16:23:14 +040090 - --hydra={{ .Values.ui.hydra }}
giolekvadd750802021-11-07 13:24:21 +040091 - --email-domain={{ .Values.ui.domain }}
Giorgi Lekveishvilifedd0062023-12-21 10:52:49 +040092 - --api-port=8081
93 - --kratos-api=http://kratos-admin.{{ .Release.Namespace }}.svc.cluster.local
Giorgi Lekveishvilid76414e2023-12-21 13:30:23 +040094 - --enable-registration={{ .Values.ui.enableRegistration }}
giodd213152024-09-27 11:26:59 +020095 - --default-return-to={{ .Values.ui.defaultReturnTo }}