-
Notifications
You must be signed in to change notification settings - Fork 35
/
auth-deployment.yaml.example
87 lines (85 loc) · 2.14 KB
/
auth-deployment.yaml.example
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
---
apiVersion: v1
kind: Service
metadata:
name: oidc-auth
spec:
type: ClusterIP
selector:
app: oidc-auth
ports:
- port: 8080
name: http-oidc-auth
targetPort: http-api
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: oidc-auth
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
labels:
app: oidc-auth
spec:
containers:
- name: oidc-auth
image: ajmyyra/ambassador-auth-oidc:1.3
imagePullPolicy: Always
ports:
- name: http-api
containerPort: 8080
env:
- name: PORT
value: "8080"
- name: REDIS_ADDRESS
value: "localhost:6379"
- name: OIDC_SCOPES
value: "profile email"
- name: JWT_HMAC_SECRET
valueFrom:
secretKeyRef:
name: ambassador-auth-jwt-key
key: jwt-key
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: ambassador-auth-redis-password
key: redis-password
- name: OIDC_PROVIDER
valueFrom:
secretKeyRef:
name: ambassador-auth-oidc-provider
key: oidc-provider
- name: SELF_URL
valueFrom:
secretKeyRef:
name: ambassador-auth-self-url
key: self-url
- name: CLIENT_ID
valueFrom:
secretKeyRef:
name: ambassador-auth-client-id
key: client-id
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
name: ambassador-auth-client-secret
key: client-secret
- name: auth-redis
image: bitnami/redis:latest
imagePullPolicy: Always
ports:
- name: redis-port
containerPort: 6379
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: ambassador-auth-redis-password
key: redis-password