-
Notifications
You must be signed in to change notification settings - Fork 0
/
ccidp-deployment.yaml
96 lines (96 loc) · 2.36 KB
/
ccidp-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: shibboleth
name: ccidp-deployment
namespace: aai-prod
spec:
replicas: 2
selector:
matchLabels:
app: shibboleth
template:
metadata:
labels:
app: shibboleth
spec:
containers:
- env:
- name: JETTY_MAX_HEAP
value: 3000m
image: computecanada/shibboleth-idp:3.4.3
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /idp
port: 8080
scheme: HTTP
initialDelaySeconds: 120
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 1
name: idp
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /idp
port: 8080
scheme: HTTP
initialDelaySeconds: 112
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
cpu: "1"
memory: 4000Mi
volumeMounts:
- mountPath: /opt/shibboleth-idp/credentials
name: credentials
- mountPath: /opt/shibboleth-idp/ext-conf
name: secrets
- mountPath: /opt/shibboleth-idp/metadata
name: shib-config
subPath: metadata
- mountPath: /opt/idp-conf
name: shib-config
subPath: conf
- mountPath: /opt/shibboleth-idp/messages
name: shib-config
subPath: messages
initContainers:
- name: init-clone-repo
image: alpine/git
args:
- clone
- -b
- 0.1.2
- --single-branch
- --
- [email protected]:cc-middleware/idp-prod-config.git
- /shib-config
volumeMounts:
- name: shib-config
mountPath: /shib-config
- name: ssh-key
mountPath: /root/.ssh
volumes:
- name: credentials
secret:
defaultMode: 420
secretName: idp-keys
- name: secrets
secret:
defaultMode: 420
secretName: idp-secrets
- name: shib-config
emptyDir: {}
- name: ssh-key
secret:
defaultMode: 0400
secretName: gitlab-sshkey