-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkube_operator.yml
73 lines (73 loc) · 1.64 KB
/
kube_operator.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-operator
annotations:
update-timestamp: "2"
labels:
app: kube-operator
spec:
selector:
matchLabels:
app: kube-operator
replicas: 1
minReadySeconds: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: kube-operator
spec:
terminationGracePeriodSeconds: 10
containers:
- image: registry.cn-hangzhou.aliyuncs.com/lexmargin/kube-operator:latest
name: kube-operator
imagePullPolicy: Always
ports:
- containerPort: 9090
protocol: TCP
env:
# Grpc listen port
- name: GRPC_LISTEN_PORT
value: "9090"
# Kubernetes master url
- name: K8S_MASTER_URL
value: ""
# Kubernetes config file
- name: K8S_CONFIG_FILE
value: "/root/config"
# subPath: config.yml
- name: INSECURE
value: ""
- name: QQBOT_SERVICE_ADDR
value: "qq-bot:9090"
volumeMounts:
- mountPath: /root/config
name: config-path
volumes:
- name: config-path
hostPath:
path: /root/.kube/config
type: File
---
apiVersion: v1
kind: Service
metadata:
name: kube-operator
labels:
app: kube-operator
spec:
selector:
app: kube-operator
ports:
- name: kube-operator-port
protocol: TCP
port: 9090
targetPort: 9090
nodePort: 30090
type: NodePort