-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8sapp.yaml
48 lines (47 loc) · 1.11 KB
/
k8sapp.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
# This file configures the Hello World app which serves public web traffic.
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world-demo
spec:
replicas: 3
selector:
matchLabels:
app: hello-world-demo
template:
metadata:
labels:
app: hello-world-demo
spec:
containers:
- name: hello-world-demo
# Update with the path to your image
image: gcr.io/...
# This app listens on port 8080 for web traffic by default.
ports:
- containerPort: 8080
env:
- name: PORT
value: "8080"
resources:
requests:
cpu: 100m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
---
# The hello-logging service provides a load-balancing proxy over the hello-logging
# pods. By specifying the type as a 'LoadBalancer', Kubernetes Engine will
# create an external HTTP load balancer.
apiVersion: v1
kind: Service
metadata:
name: hello-world-demo
spec:
type: LoadBalancer
selector:
app: hello-world-demo
ports:
- port: 80
targetPort: 8080