-
Notifications
You must be signed in to change notification settings - Fork 3
/
kube-controller-manager.yaml
84 lines (84 loc) · 2.59 KB
/
kube-controller-manager.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
apiVersion: v1
kind: Pod
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
component: kube-controller-manager
tier: control-plane
name: kube-controller-manager
namespace: kube-system
spec:
containers:
- name: kube-controller-manager
command:
- kube-controller-manager
- --v=${KUBE_LOG_LEVEL}
- --kubeconfig=/etc/kubernetes/controller-manager.conf
- --service-account-private-key-file=/etc/kubernetes/pki/sa.key
- --cluster-signing-cert-file=/etc/kubernetes/pki/ca.crt
- --address=127.0.0.1
- --leader-elect=true
- --attach-detach-reconcile-sync-period=30s
- --use-service-account-credentials=true
- --controllers=*,bootstrapsigner,tokencleaner
- --root-ca-file=/etc/kubernetes/pki/ca.crt
- --cluster-signing-key-file=/etc/kubernetes/pki/ca.key
- --service-cluster-ip-range=10.96.0.0/16
- --allocate-node-cidrs=true
- --cluster-cidr=10.244.0.0/16
- --node-cidr-mask-size=24
- --cloud-provider=external
- --horizontal-pod-autoscaler-use-rest-clients=true
- --flex-volume-plugin-dir=/usr/libexec/kubernetes/kubelet-plugins/volume/exec/
- --feature-gates=AllAlpha=true,DynamicKubeletConfig=false,RotateKubeletServerCertificate=false,RotateKubeletClientCertificate=false
image: dockerhub.qingcloud.com/google_containers/hyperkube-amd64:${HYPERKUBE_VERSION}
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 8
httpGet:
host: 127.0.0.1
path: /healthz
port: 10252
scheme: HTTP
initialDelaySeconds: 15
timeoutSeconds: 15
resources:
requests:
cpu: 200m
volumeMounts:
- mountPath: /etc/kubernetes
name: k8s
readOnly: true
- mountPath: /etc/ssl/certs
name: certs
- mountPath: /usr/libexec/kubernetes/kubelet-plugins
name: plugins
- mountPath: /var/log/qingcloud-flex-volume/
name: flexlog
- mountPath: /etc/qingcloud
name: qingcloud
readOnly: true
- name: flexlog
image: busybox:1.28.4
args: [/bin/sh, -c, 'tail -n+1 -F /var/log/qingcloud-flex-volume/flex-volume.INFO']
volumeMounts:
- name: flexlog
mountPath: /var/log/qingcloud-flex-volume
hostNetwork: true
volumes:
- name: k8s
hostPath:
path: /etc/kubernetes
- name: certs
hostPath:
path: /etc/ssl/certs
- name: plugins
hostPath:
path: /usr/libexec/kubernetes/kubelet-plugins
- name: qingcloud
hostPath:
path: /etc/qingcloud
- name: flexlog
hostPath:
path: /var/log/qingcloud-flex-volume-controller-manager/