forked from aquasecurity/starboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
05-starboard-operator.deployment.yaml
127 lines (127 loc) · 3.96 KB
/
05-starboard-operator.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
---
apiVersion: v1
kind: Service
metadata:
name: starboard-operator
namespace: starboard-system
labels:
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.15.9-rc3"
app.kubernetes.io/managed-by: kubectl
annotations:
prometheus.io/path: /metrics
prometheus.io/scrape: "true"
spec:
type: ClusterIP
ports:
- port: 80
targetPort: metrics
name: metrics
selector:
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: starboard-operator
namespace: starboard-system
labels:
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.15.9-rc3"
app.kubernetes.io/managed-by: kubectl
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
template:
metadata:
labels:
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
spec:
serviceAccountName: starboard-operator
automountServiceAccountToken: true
containers:
- name: "starboard-operator"
image: "docker.io/aquasec/starboard-operator:0.15.9-rc3"
imagePullPolicy: IfNotPresent
env:
- name: OPERATOR_NAMESPACE
value: "starboard-system"
- name: OPERATOR_TARGET_NAMESPACES
value: ""
- name: OPERATOR_EXCLUDE_NAMESPACES
value: "kube-system,starboard-system"
- name: OPERATOR_SERVICE_ACCOUNT
value: "starboard-operator"
- name: OPERATOR_LOG_DEV_MODE
value: "false"
- name: OPERATOR_SCAN_JOB_TIMEOUT
value: "5m"
- name: OPERATOR_CONCURRENT_SCAN_JOBS_LIMIT
value: "10"
- name: OPERATOR_SCAN_JOB_RETRY_AFTER
value: "30s"
- name: OPERATOR_BATCH_DELETE_LIMIT
value: "10"
- name: OPERATOR_BATCH_DELETE_DELAY
value: "10s"
- name: OPERATOR_METRICS_BIND_ADDRESS
value: ":8080"
- name: OPERATOR_HEALTH_PROBE_BIND_ADDRESS
value: ":9090"
- name: OPERATOR_CIS_KUBERNETES_BENCHMARK_ENABLED
value: "true"
- name: OPERATOR_VULNERABILITY_SCANNER_ENABLED
value: "true"
- name: OPERATOR_VULNERABILITY_SCANNER_SCAN_ONLY_CURRENT_REVISIONS
value: "false"
- name: OPERATOR_VULNERABILITY_SCANNER_REPORT_TTL
value: ""
- name: OPERATOR_CONFIG_AUDIT_SCANNER_ENABLED
value: "false"
- name: OPERATOR_CONFIG_AUDIT_SCANNER_SCAN_ONLY_CURRENT_REVISIONS
value: "false"
- name: OPERATOR_CONFIG_AUDIT_SCANNER_BUILTIN
value: "true"
- name: OPERATOR_CLUSTER_COMPLIANCE_ENABLED
value: "true"
ports:
- name: metrics
containerPort: 8080
- name: probes
containerPort: 9090
readinessProbe:
httpGet:
path: /readyz/
port: probes
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
livenessProbe:
httpGet:
path: /healthz/
port: probes
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
failureThreshold: 10
resources:
{}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
securityContext:
{}