-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcowrie-pod.yaml
42 lines (42 loc) · 974 Bytes
/
cowrie-pod.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
---
apiVersion: v1
kind: Pod
metadata:
name: cowrie
labels:
app.kubernetes.io/name: cowrie
app.kubernetes.io/instance: cowrie-abcxzy
app.kubernetes.io/component: honeypot
app.kubernetes.io/part-of: cowrie
spec:
volumes:
- name: cowrie-var
emptyDir: {}
- name: cowrie-etc
emptyDir: {}
containers:
- name: cowrie
image: cowrie/cowrie:latest
imagePullPolicy: Always
securityContext:
runAsUser: 999
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- all
ports:
- name: ssh-port
containerPort: 2222
- name: telnet-port
containerPort: 2223
readinessProbe:
tcpSocket:
port: ssh-port
initialDelaySeconds: 5
periodSeconds: 60
livenessProbe:
tcpSocket:
port: ssh-port
initialDelaySeconds: 15
periodSeconds: 60