add k8s template with vuln app

This commit is contained in:
Sergey K 2021-12-11 23:36:30 +03:00
parent 2414dc4300
commit a57c55b8f6
2 changed files with 33 additions and 0 deletions

View 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
View 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