forked from 1Password/scim-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathop-scim-deployment.yaml
66 lines (66 loc) · 1.77 KB
/
op-scim-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: op-scim-bridge
spec:
selector:
matchLabels:
app: op-scim-bridge
replicas: 1
template:
metadata:
labels:
app: op-scim-bridge
spec:
securityContext:
runAsNonRoot: true
runAsUser: 999
runAsGroup: 999
fsGroup: 999
containers:
- name: op-scim-bridge
image: 1password/scim:v2.9.5
securityContext:
allowPrivilegeEscalation: false
ports:
# HTTPS port (external TCP traffic should be forwarded to this when using CertificateManager)
- name: https
containerPort: 8443
# HTTP port (unencrypted traffic can be received using this port)
- name: http
containerPort: 3002
volumeMounts:
- name: opuser-data
mountPath: /home/opuser/.op
- name: secrets
mountPath: /secrets
resources:
requests:
cpu: 125m
memory: 512M
limits:
memory: 512M
envFrom:
- configMapRef:
name: op-scim-configmap
volumes:
- name: opuser-data
projected:
sources:
- secret:
name: scimsession
- secret:
name: workspace-credentials
optional: true
- secret:
name: workspace-settings
optional: true
- name: secrets
projected:
sources:
- secret:
name: op-scim-tls
optional: true
- secret:
name: dns01-config
optional: true