Skip to content

Commit c18ec34

Browse files
authored
Merge pull request #2 from datum-cloud/feat/add-deployment-manifests
Add Kubernetes Deployment, Service, and HTTPRoute manifests
2 parents 35e45de + 36f50e4 commit c18ec34

13 files changed

Lines changed: 126 additions & 240 deletions

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/docs.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/improvement.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/proposal.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/custom-i18n.png

-83 KB
Binary file not shown.

.github/dependabot.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/build-authui.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
type=semver,pattern={{major}}.{{minor}}
4141
type=semver,pattern={{major}}
4242
type=sha
43+
type=raw,value=latest,enable={{is_default_branch}}
44+
type=raw,value=latest,enable=${{ github.event_name == 'release' }}
4345
4446
- name: Build Auth UI Docker image
4547
run: make login_standalone_build
@@ -58,4 +60,15 @@ jobs:
5860
docker tag "$IMAGE" "$TAG"
5961
echo "Pushing $TAG"
6062
docker push "$TAG"
61-
done
63+
done
64+
65+
publish-kustomize-bundles:
66+
permissions:
67+
id-token: write
68+
contents: read
69+
packages: write
70+
uses: datum-cloud/actions/.github/workflows/publish-kustomize-bundle.yaml@v1.5.1
71+
with:
72+
bundle-name: ghcr.io/datum-cloud/auth-ui-kustomize
73+
bundle-path: config
74+
secrets: inherit

config/base/deployment.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
labels:
5+
app.kubernetes.io/instance: auth-ui
6+
app.kubernetes.io/name: auth-ui
7+
app.kubernetes.io/version: 1.0.0
8+
name: auth-ui
9+
spec:
10+
progressDeadlineSeconds: 600
11+
replicas: 2
12+
revisionHistoryLimit: 5
13+
selector:
14+
matchLabels:
15+
app.kubernetes.io/component: frontend
16+
app.kubernetes.io/instance: auth-ui
17+
app.kubernetes.io/name: auth-ui
18+
strategy:
19+
rollingUpdate:
20+
maxSurge: 1
21+
maxUnavailable: 0
22+
type: RollingUpdate
23+
template:
24+
metadata:
25+
labels:
26+
app.kubernetes.io/component: frontend
27+
app.kubernetes.io/instance: auth-ui
28+
app.kubernetes.io/name: auth-ui
29+
spec:
30+
containers:
31+
- name: auth-ui
32+
image: ghcr.io/datum-cloud/auth-ui:latest
33+
imagePullPolicy: IfNotPresent
34+
ports:
35+
- containerPort: 3000
36+
name: http
37+
protocol: TCP
38+
envFrom:
39+
# Add secret for ZITADEL_SERVICE_USER_TOKEN and ZITADEL_API_URL
40+
- secretRef:
41+
name: auth-ui
42+
resources:
43+
# TODO: Specify resource requests
44+
limits:
45+
cpu: 1
46+
memory: 1Gi
47+
livenessProbe:
48+
failureThreshold: 3
49+
initialDelaySeconds: 5
50+
periodSeconds: 5
51+
timeoutSeconds: 10
52+
httpGet:
53+
path: /ui/v2/login/healthy
54+
port: 3000
55+
scheme: HTTP
56+
readinessProbe:
57+
failureThreshold: 3
58+
initialDelaySeconds: 5
59+
periodSeconds: 5
60+
timeoutSeconds: 10
61+
httpGet:
62+
path: /ui/v2/login/healthy
63+
port: 3000
64+
scheme: HTTP
65+
dnsPolicy: ClusterFirst
66+
restartPolicy: Always
67+
terminationGracePeriodSeconds: 30

0 commit comments

Comments
 (0)