Merge 4b6b732208
into c962aabb31
This commit is contained in:
commit
6965740095
48
k8s_template/deployment.yaml
Normal file
48
k8s_template/deployment.yaml
Normal file
|
@ -0,0 +1,48 @@
|
|||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: log4shell
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: allow_all
|
||||
rules:
|
||||
- apiGroups:
|
||||
- '*'
|
||||
resources:
|
||||
- '*'
|
||||
verbs:
|
||||
- '*'
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: allow_all_bind
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: allow_all
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: log4shell
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: log4shell
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: log4shell
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: log4shell
|
||||
spec:
|
||||
serviceAccountName: log4shell
|
||||
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