-
Notifications
You must be signed in to change notification settings - Fork 0
/
awsControllerService_demo.yml
52 lines (50 loc) · 1.18 KB
/
awsControllerService_demo.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
51
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: webservice
name: webservice-deployment
spec:
replicas: 3
selector:
matchLabels:
app: webservice
template:
metadata:
creationTimestamp: null
labels:
app: webservice
spec:
containers:
#- image: 377242125348.dkr.ecr.eu-central-1.amazonaws.com/webservice #pleshakov/coffee #pleshakov/coffee:decaf #pleshakov/coffee
- image: pleshakov/coffee
name: webservice-container
ports:
- containerPort: 8080
resources:
limits:
cpu: "0.5"
memory: 200Mi
requests:
cpu: "100m"
memory: 100Mi
---
apiVersion: v1
kind: Service
metadata:
labels:
app: webservice
name: webservice
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-type: "nlb-ip"
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: webservice
type: LoadBalancer