Installer: core auth services
diff --git "a/core/auth/ui/\043install.yaml\043" "b/core/auth/ui/\043install.yaml\043"
new file mode 100644
index 0000000..35ee23a
--- /dev/null
+++ "b/core/auth/ui/\043install.yaml\043"
@@ -0,0 +1,122 @@
+---
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: core-auth
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: kratos-selfservice-ui
+ namespace: core-auth
+spec:
+ type: ClusterIP
+ selector:
+ app: kratos-selfservice-ui
+ ports:
+ - name: http
+ port: 80
+ targetPort: http
+ protocol: TCP
+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: ingress-kratos-selfservice-ui-public
+ namespace: core-auth
+ annotations:
+ cert-manager.io/cluster-issuer: "letsencrypt-prod"
+ acme.cert-manager.io/http01-edit-in-place: "true"
+spec:
+ ingressClassName: nginx
+ tls:
+ - hosts:
+ - accounts-ui.lekva.me
+ secretName: cert-accounts-ui.lekva.me
+ rules:
+ - host: accounts-ui.lekva.me
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: kratos-selfservice-ui
+ port:
+ name: http
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: kratos-selfservice-ui
+ namespace: core-auth
+spec:
+ selector:
+ matchLabels:
+ app: kratos-selfservice-ui
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: kratos-selfservice-ui
+ spec:
+ volumes:
+ - name: cert
+ secret:
+ secretName: node-auth-ui-cert
+ - name: config
+ configMap:
+ name: auth-ui-lighthouse-config
+ hostAliases:
+ - ip: "111.0.0.1"
+ hostnames:
+ - "hydra.pcloud"
+ containers:
+ - name: server
+ image: giolekva/auth-ui:latest
+ imagePullPolicy: Always
+ env:
+ - name: KRATOS_PUBLIC_URL
+ value: "https://accounts.lekva.me"
+ ports:
+ - name: http
+ containerPort: 8080
+ protocol: TCP
+ command: ["server", "--port=8080"]
+ # resources:
+ # requests:
+ # memory: "10Mi"
+ # cpu: "10m"
+ # limits:
+ # memory: "20Mi"
+ # cpu: "100m"
+ - name: lighthouse
+ image: giolekva/nebula:latest
+ imagePullPolicy: IfNotPresent
+ securityContext:
+ capabilities:
+ add: ["NET_ADMIN"]
+ privileged: true
+ ports:
+ - name: lighthouse
+ containerPort: 4247
+ protocol: UDP
+ command: ["nebula", "--config=/etc/nebula/config/lighthouse.yaml"]
+ volumeMounts:
+ - name: cert
+ mountPath: /etc/nebula/lighthouse
+ readOnly: true
+ - name: config
+ mountPath: /etc/nebula/config
+ readOnly: true
+---
+apiVersion: lekva.me/v1
+kind: NebulaNode
+metadata:
+ name: auth-ui
+ namespace: core-auth
+spec:
+ caName: pcloud
+ caNamespace: ingress-nginx-private
+ ipCidr: "111.0.0.10/24"
+ secretName: node-auth-ui-cert