-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
learntosolveit.yaml
61 lines (61 loc) · 1.27 KB
/
learntosolveit.yaml
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
51
52
53
54
55
56
57
58
59
60
61
apiVersion: v1
kind: Namespace
metadata:
name: learntosolveit
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: learntosolveit
name: deployment-learntosolveit
spec:
selector:
matchLabels:
app.kubernetes.io/name: app-learntosolveit
replicas: 5
template:
metadata:
labels:
app.kubernetes.io/name: app-learntosolveit
spec:
containers:
- image: skumaran/learntosolveit:latest
imagePullPolicy: Always
name: app-learntosolveit
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
namespace: learntosolveit
name: service-learntosolveit
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
type: NodePort
selector:
app.kubernetes.io/name: app-learntosolveit
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: learntosolveit
name: ingress-learntosolveit
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: service-learntosolveit
port:
number: 80