-
Notifications
You must be signed in to change notification settings - Fork 6
/
deployment.yaml.in
61 lines (61 loc) · 1.81 KB
/
deployment.yaml.in
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/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: aks-audit-log-forwarder
labels:
app: aks-audit-log-forwarder
spec:
selector:
matchLabels:
app: aks-audit-log-forwarder
strategy:
type: Recreate
template:
metadata:
labels:
app: aks-audit-log-forwarder
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "5000"
prometheus.io/scrape: "true"
spec:
containers:
- image: sysdiglabs/aks-audit-log-forwarder:$ImageVersion
imagePullPolicy: $ImagePullPolicy
name: aks-audit-log-forwarder
resources:
# Resources needed are subjective to the actual workload.
# Please refer to Sysdig Support for more info.
requests:
cpu: 20m
memory: 512Mi
limits:
cpu: 200m
memory: 1024Mi
readinessProbe:
exec:
command:
- wget
- 127.0.0.1:5000/metrics
- --spider
initialDelaySeconds: 10
livenessProbe:
httpGet:
path: /metrics
port: 5000
initialDelaySeconds: 10
periodSeconds: 20
env:
- name: EhubNamespaceConnectionString
value: "$EhubNamespaceConnectionString"
- name: BlobStorageConnectionString
value: "$BlobStorageConnectionString"
- name: EventHubName
value: "insights-logs-kube-audit"
- name: BlobContainerName
value: "kubeauditlogcontainer"
- name: WebSinkURL
value: "http://sysdig-agent:7765/k8s_audit"
- name: VerboseLevel
value: "$VerboseLevel"