-
Notifications
You must be signed in to change notification settings - Fork 1
/
pages.yaml
60 lines (58 loc) · 1.22 KB
/
pages.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
apiVersion: v1
kind: Service
metadata:
name: pages
spec:
type: NodePort
selector:
app: pages
ports:
- port: 80
targetPort: 80
nodePort: 30080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pages
spec:
selector:
matchLabels:
app: pages
template:
metadata:
labels:
app: pages
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- pages
containers:
- name: pages
image: 192.168.50.182:30082/gssjl2008/pages:latest
imagePullPolicy: Always
resources:
limits:
memory: "500Mi"
cpu: "500m"
ports:
- containerPort: 8000
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 80
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 30