forked from arouene/ProbeEP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprobeep.yaml
107 lines (107 loc) · 2.14 KB
/
probeep.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
apiVersion: v1
kind: ServiceAccount
metadata:
name: probeep
namespace: lucca
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: probeep-role
rules:
- apiGroups:
- ""
resources:
- endpoints
verbs:
- list
- get
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: probeep
subjects:
- kind: ServiceAccount
name: probeep
namespace: lucca
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: probeep-role
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: probeep
namespace: lucca
spec:
selector:
matchLabels:
app: probeep
template:
metadata:
labels:
app: probeep
spec:
containers:
- name: probeep
image: probeep:latest
imagePullPolicy: Always
env:
- name: CHECK_NAMESPACE
value: default
- name: CHECK_ENDPOINT
value: consul
- name: CHECK_PORT
value: "8500"
- name: PERIOD_SECONDS
value: "10"
- name: TIMEOUT_SECONDS
value: "3"
- name: ANNOTATION_NAME
value: "lucca.net/probe-ep-hostnames"
resources:
limits:
memory: "50Mi"
cpu: "20m"
requests:
memory: "20Mi"
cpu: "10m"
readinessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
livenessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 1
imagePullSecrets:
- name: lucca-registry
restartPolicy: Always
terminationGracePeriodSeconds: 20
serviceAccountName: probeep
---
apiVersion: v1
kind: Endpoints
metadata:
name: consul
annotations:
lucca.net/probe-ep-hostnames: '["hostname.to.resolve.example.com","hostname.to.resolve2.example.com","hostname.to.resolve3.example.com"]'
subsets: []
---
apiVersion: v1
kind: Service
metadata:
name: consul
spec:
ports:
- name: http
port: 8500