This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrabenyx.yaml
103 lines (103 loc) · 2.44 KB
/
rabenyx.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
apiVersion: v1
kind: Service
metadata:
name: rabenyx
namespace: rabenyx
spec:
selector:
name: rabenyx
ports:
- name: flask
protocol: TCP
port: 5000
targetPort: 5000
- name: oauth2-proxy
protocol: TCP
port: 5001
targetPort: 5001
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rabenyx
namespace: rabenyx
labels:
name: rabenyx
spec:
replicas: 1
selector:
matchLabels:
name: rabenyx
template:
metadata:
labels:
name: rabenyx
spec:
containers:
- name: rabenyx
image: registry.example.com/rabenyx:latest
imagePullPolicy: Always
ports:
- containerPort: 5000
resources:
limits:
memory: "1000Mi"
cpu: "1"
livenessProbe:
httpGet:
path: /health
port: 5000
initialDelaySeconds: 2
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /health
port: 5000
initialDelaySeconds: 2
timeoutSeconds: 5
env:
- name: NEXTCLOUD_USERNAME
valueFrom:
secretKeyRef:
name: nextcloud-api-credentials
key: username
- name: NEXTCLOUD_PASSWORD
valueFrom:
secretKeyRef:
name: nextcloud-api-credentials
key: password
- name: NEXTCLOUD_URL
valueFrom:
secretKeyRef:
name: nextcloud-api-credentials
key: url
envFrom:
- secretRef:
name: nextcloud-db-credentials
- name: oauth2-proxy
image: quay.io/oauth2-proxy/oauth2-proxy:v7.2.0
args:
- --provider=keycloak-oidc
- --oidc-issuer-url=https://login.example.com/auth/realms/rabenyx
- --upstream=http://127.0.0.1:5000
- --redirect-url=https://rabenyx.example.com/oauth2/callback
- --allowed-role=rabenyx-user
- --http-address=http://$(POD_IP):5001
- --email-domain=*
- --reverse-proxy=true
- --real-client-ip-header=X-Forwarded-For
ports:
- containerPort: 5001
name: oauth2-proxy
protocol: TCP
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
envFrom:
- secretRef:
name: rabenyx-oauth2-proxy
imagePullSecrets:
- name: registry.example.com