-
Notifications
You must be signed in to change notification settings - Fork 4
/
cp-cloudguard-openshift.yaml
46 lines (46 loc) · 1.45 KB
/
cp-cloudguard-openshift.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cp-resource-management
labels:
app: cp-resource-management
spec:
selector:
matchLabels:
app: cp-resource-management
replicas: 1
template:
metadata:
annotations:
# seccomp.security.alpha.kubernetes.io/pod: docker/default
# If you have AppArmor enabled on your cluster, uncomment the following line
# container.apparmor.security.beta.kubernetes.io/cp-resource-management: runtime/default
labels:
app: cp-resource-management
spec:
securityContext:
runAsUser: 1000
serviceAccountName: cp-resource-management
containers:
- name: cp-resource-management
image: quay.io/checkpoint/cp-resource-management:v1.1.0
volumeMounts:
- name: secret-volume
mountPath: /etc/secret-volume
command: ["/bin/sh"]
args: ["-c", "/inventory"]
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
env:
- name: DOME9_URL
value: "https://api-cpx.dome9.com"
- name: CP_KUBERNETES_CLUSTER_ID
valueFrom:
configMapKeyRef:
name: cp-resource-management-configmap
key: cluster.id
volumes:
- name: secret-volume
secret:
secretName: dome9-creds