diff --git a/k8s_template/deployment.yaml b/k8s_template/deployment.yaml new file mode 100644 index 0000000..6354a0c --- /dev/null +++ b/k8s_template/deployment.yaml @@ -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 diff --git a/k8s_template/service.yaml b/k8s_template/service.yaml new file mode 100644 index 0000000..57ce0fb --- /dev/null +++ b/k8s_template/service.yaml @@ -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