-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathdeployment.yml
42 lines (40 loc) · 1000 Bytes
/
deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: log4shell-demo
spec:
replicas: 1
selector:
matchLabels:
app: log4shell-demo
template:
metadata:
labels:
app: log4shell-demo
spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: log4shell-demo
image: public.ecr.aws/f9n2h3p5/log4shellpub:<TAG>
imagePullPolicy: "Always"
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: log4shell-demo
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: external
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: deregistration_delay.timeout_seconds=15
spec:
ports:
- port: 8080
targetPort: 8080
protocol: TCP
type: LoadBalancer
selector:
app: log4shell-demo