add k8s template with vuln app
This commit is contained in:
parent
2414dc4300
commit
a57c55b8f6
18
k8s_template/deployment.yaml
Normal file
18
k8s_template/deployment.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: log4shell
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: log4shell
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: log4shell
|
||||
spec:
|
||||
containers:
|
||||
- name: log4shell
|
||||
image: ghcr.io/christophetd/log4shell-vulnerable-app
|
||||
imagePullPolicy: Always
|
15
k8s_template/service.yaml
Normal file
15
k8s_template/service.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: log4shell
|
||||
labels:
|
||||
app: log4shell
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: log4shell
|
||||
ports:
|
||||
- port: 8080
|
||||
name: http
|
||||
selector:
|
||||
app: log4shell
|
Loading…
Reference in New Issue
Block a user