-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
80 lines (80 loc) · 2.2 KB
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: armored-application
labels:
deployment: armored-application
spec:
replicas: 1
selector:
matchLabels:
kubearmor.io/container.name: armored-container
template:
metadata:
labels:
kubearmor.io/container.name: armored-container
spec:
serviceAccountName: kubearmor
volumes:
- emptyDir: {}
name: kubearmor-dir
initContainers:
- name: bluelock
image: daemon1024/bluelock
imagePullPolicy: Always
volumeMounts:
- mountPath: /kubearmor
name: kubearmor-dir
containers:
- name: armored-container
image: daemon1024/ka-socat-demo
imagePullPolicy: Always
command: ["/kubearmor/bluelock","socat", "TCP-LISTEN:1337,reuseaddr,fork", "EXEC:bash,pty,stderr,setsid,sigint,sane"]
ports:
- containerPort: 1337
volumeMounts:
- mountPath: /kubearmor
name: kubearmor-dir
env:
- name: "SIDEKICK_URL"
value: "http://kubearmor.kube-system.svc.cluster.local:2801"
#- name: sidekick-container
# image: falcosecurity/falcosidekick:latest
# ports:
# - name: sidekick-port
# containerPort: 2801
# env:
# - name: "DEBUG"
# value: "true"
# - name: "DISCORD_WEBHOOKURL"
# value: "https://discord.com/api/webhooks/1093242887153659965/WYPwFw34KfU-2p587Iw1b9hrn2t8cEqsNzoBmaZiHqRvNGwN3neAIQjBd8PxlR_n0qrh"
# - name: "DISCORD_MINIMUMPRIORITY"
# value: "debug"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kubearmor-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: kubearmor
namespace: default
- kind: ServiceAccount
name: kubearmor
namespace: kube-system
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kubearmor
namespace: default
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kubearmor
namespace: kube-system