-
Notifications
You must be signed in to change notification settings - Fork 0
/
04-microbot.yaml
69 lines (65 loc) · 1.28 KB
/
04-microbot.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
62
63
64
65
66
67
68
apiVersion: v1
kind: Service
metadata:
name: microbot
namespace: default
labels:
k8s-app: microbot
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "microbot"
spec:
selector:
k8s-app: microbot
ports:
- name: http
port: 80
protocol: TCP
externalIPs:
- $EXT_IP1
---
apiVersion: v1
kind: ReplicationController
metadata:
name: microbot
namespace: default
labels:
k8s-app: microbot
version: v1
kubernetes.io/cluster-service: "true"
spec:
replicas: 25
selector:
k8s-app: microbot
version: v1
template:
metadata:
labels:
k8s-app: microbot
version: v1
kubernetes.io/cluster-service: "true"
spec:
containers:
- name: microbot
image: dontrebootme/microbot:v1
resources:
limits:
cpu: 25m
memory: 32Mi
ports:
- containerPort: 80
name: http
protocol: TCP
livenessProbe:
httpGet:
path: /
port: 80
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /
port: 80
scheme: HTTP
initialDelaySeconds: 1
timeoutSeconds: 5