-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaster.yml.template
62 lines (61 loc) · 1.66 KB
/
master.yml.template
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
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: scanner-master
spec:
replicas: 1
template:
metadata:
labels:
app: scanner-master
spec:
volumes:
- name: scanner-config
configMap:
name: scanner-configmap
- name: efs-pvc
persistentVolumeClaim:
claimName: efs
- name: efs-sdb-pvc
persistentVolumeClaim:
claimName: efs-sdb
containers:
- name: scanner-master
image: <AWSACCT>.dkr.ecr.us-east-1.amazonaws.com/scanner:scanner-master
imagePullPolicy: Always
securityContext:
privileged: true
capabilities:
add:
- SYS_ADMIN
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-storage-key
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws-storage-key
key: AWS_SECRET_ACCESS_KEY
- name: GLOG_logtostderr
value: '1'
- name: GLOG_minloglevel
value: '0'
- name: GLOG_v
value: '2'
# resources:
# requests:
# cpu: 2
ports:
- containerPort: 8080
volumeMounts:
- name: efs-sdb-pvc
mountPath: /root/.scanner
- name: efs-pvc
mountPath: /efsc
# - name: efs-sdb-pvc
# mountPath: /efs-sdb
nodeSelector:
alpha.eksctl.io/nodegroup-name: Scanner