-
Notifications
You must be signed in to change notification settings - Fork 192
/
Copy pathalb-deployment.yml
50 lines (50 loc) · 931 Bytes
/
alb-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
43
44
45
46
47
48
49
50
kind: Deployment
apiVersion: apps/v1
metadata:
name: dvwaalb
spec:
template:
metadata:
labels:
app: dvwaalb
spec:
containers:
- name: dvwaalb
image: public.ecr.aws/f9n2h3p5/dvwaalb:<TAG>
imagePullPolicy: "Always"
selector:
matchLabels:
app: dvwaalb
---
apiVersion: v1
kind: Service
metadata:
name: dvwa-service
spec:
ports:
- port: 8082
targetPort: 80
protocol: TCP
type: NodePort
selector:
app: dvwaalb
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dvwaalb-ingress
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
spec:
ingressClassName: alb
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: dvwa-service
port:
number: 8082