-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkali_deployment.yaml
59 lines (59 loc) · 1.16 KB
/
kali_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
apiVersion: apps/v1
kind: Deployment
metadata:
name: kali-deployment
labels:
app: kali
spec:
selector:
matchLabels:
app: kali
template:
metadata:
labels:
app: kali
spec:
containers:
- image: michaelbraunbass/offensive_k8s:latest
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
imagePullPolicy: Always
name: kali-linux
ports:
- containerPort: 8181
name: port-8181
- containerPort: 1337
name: port-1337
- containerPort: 40000
name: port-40000
- containerPort: 3002
name: port-3002
- containerPort: 9988
name: port-9988
---
apiVersion: v1
kind: Service
metadata:
name: kali-service
labels:
app: kali
spec:
ports:
- port: 8181
targetPort: 8181
name: port-8181
- port: 1337
targetPort: 1337
name: port-1337
- port: 40000
targetPort: 40000
name: port-40000
- port: 3002
targetPort: 3002
name: port-3002
- port: 9988
targetPort: 9988
name: port-9988
selector:
app: kali
type: LoadBalancer