/
k8s.yml
66 lines (60 loc) · 1.07 KB
/
k8s.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
apiVersion: v1
kind: Namespace
metadata:
name: welcome
---
apiVersion: v1
kind: Service
metadata:
name: welcome
namespace: welcome
labels:
app: welcome
spec:
type: LoadBalancer
selector:
app: welcome
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: welcome
namespace: welcome
labels:
app: welcome
spec:
replicas: 1
selector:
matchLabels:
app: welcome
template:
metadata:
labels:
app: welcome
spec:
serviceAccountName: default
containers:
- name: web
image: starkandwayne/welcome-to-k8s
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /
port: http
ports:
- name: http
containerPort: 80
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 64Mi