-
Notifications
You must be signed in to change notification settings - Fork 4
/
statefulset.yaml
45 lines (45 loc) · 1.11 KB
/
statefulset.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: authservice
spec:
replicas: 1
selector:
matchLabels:
app: authservice
serviceName: authservice
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
labels:
app: authservice
spec:
containers:
- name: authservice
image: k8scc01covidacr.azurecr.io/oidc-authservice:latest
imagePullPolicy: Always
ports:
- name: http-api
containerPort: 8080
envFrom:
- secretRef:
name: oidc-authservice-client
- configMapRef:
name: oidc-authservice-parameters
volumeMounts:
- name: data
mountPath: /var/lib/authservice
readinessProbe:
httpGet:
path: /
port: 8081
securityContext:
fsGroup: 111
imagePullSecrets:
- name: k8scc01covidacr-registry-connection
# this secret must exist in our deployment.
volumes:
- name: data
persistentVolumeClaim:
claimName: authservice-pvc