-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-cluster-util-apis.yml
57 lines (56 loc) · 1.12 KB
/
k8s-cluster-util-apis.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cluster-utils-api
labels:
app: cluster-utils
type: api
spec:
replicas: 1
selector:
matchLabels:
app: cluster-utils
type: api
template:
metadata:
labels:
app: cluster-utils
type: api
spec:
containers:
- name: cluster-utils-api
image: donkeyx/cluster-utils-api:latest
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /healthz
port: 8080
periodSeconds: 10
startupProbe:
httpGet:
path: /healthz
port: 8080
failureThreshold: 30
periodSeconds: 10
env:
- name: PORT
value: "8080"
resources:
requests:
cpu: "0.1"
memory: "50Mi"
limits:
cpu: "0.5"
memory: 100Mi
---
apiVersion: v1
kind: Service
metadata:
name: cluster-utils-api-svc
spec:
selector:
app: cluster-utils
type: api
ports:
- port: 8080
targetPort: 8080