forked from kcp-dev/kcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmp-kcp-standalone.yaml
65 lines (65 loc) · 1.18 KB
/
tmp-kcp-standalone.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
apiVersion: v1
kind: Service
metadata:
name: kcp
spec:
ports:
- protocol: TCP
name: kcp
port: 6443
targetPort: 6443
selector:
app: kcp
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kcp
labels:
app: kcp
spec:
replicas: 1
selector:
matchLabels:
app: kcp
strategy:
type: Recreate
template:
metadata:
labels:
app: kcp
spec:
containers:
- name: kcp
image: ghcr.io/kcp-dev/kcp:latest
ports:
- containerPort: 6443
command:
- /kcp
args:
- start
- --root-directory=/tmp
- --v=2
livenessProbe:
failureThreshold: 3
httpGet:
path: livez
port: 6443
scheme: HTTPS
initialDelaySeconds: 45
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
readinessProbe:
failureThreshold: 3
httpGet:
path: readyz
port: 6443
scheme: HTTPS
resources:
limits:
cpu: '2'
memory: 2Gi
requests:
cpu: '1'
memory: 1Gi