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