forked from louketo/louketo-proxy
-
Notifications
You must be signed in to change notification settings - Fork 43
/
reverse.yml
54 lines (54 loc) · 1.57 KB
/
reverse.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: proxy
spec:
replicas: 1
template:
metadata:
labels:
name: proxy
annotations:
repository: https://github.com/gogatekeeper/gatekeeper
spec:
securityContext:
fsGroup: 1000
runAsNonRoot: true
runAsUser: 1000
volumes:
- name: certs
secret:
secretName: tls
containers:
- name: proxy
image: quay.io/gogatekeeper/gatekeeper:2.12.1
imagePullPolicy: Always
args:
- --client-id=broker
- --discovery-url=https://sso.example.com/realms/hod-test
- --enable-default-deny=false
- --enable-json-logging=true
- --enable-logging=true
- --enable-request-id=true
- --enable-security-filter=true
- --http-only-cookie=true
- --listen=127.0.0.1:3000
- --preserve-host=true
- --redirection-url=https://www.example.com
- --resources=uri=/admin/*|roles=admin
- --skip-client-id=true
- --tls-cert=/certs/tls.pem
- --tls-private-key=/certs/tls-key.pem
- --upstream-url=http://127.0.0.1:8080
env:
- name: PROXY_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: openid
key: client.secret
securityContext:
readOnlyRootFilesystem: true
volumeMounts:
- name: certs
mountPath: /certs
readOnly: true