-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathkube-controller-pod.yaml
66 lines (66 loc) · 2.07 KB
/
kube-controller-pod.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
apiVersion: v1
kind: Pod
metadata:
name: kube-controller
spec:
hostNetwork: true
volumes:
- name: "etc-kubernetes"
hostPath:
path: "/etc/kubernetes"
- name: "ssl-certs"
hostPath:
path: "/usr/share/ca-certificates"
- name: "var-run-kubernetes"
hostPath:
path: "/var/run/kubernetes"
- name: "var-lib-kubernetes"
hostPath:
path: "/var/lib/kubernetes"
- name: "etcd-datadir"
hostPath:
path: "/var/lib/etcd"
containers:
- name: "etcd"
image: "b.gcr.io/kuar/etcd:2.2.2"
args:
- "--data-dir=/var/lib/etcd"
- "--advertise-client-urls=http://127.0.0.1:2379"
- "--listen-client-urls=http://127.0.0.1:2379"
- "--listen-peer-urls=http://127.0.0.1:2380"
- "--name=etcd"
volumeMounts:
- mountPath: /var/lib/etcd
name: "etcd-datadir"
- name: "kube-apiserver"
image: "b.gcr.io/kuar/kube-apiserver:1.1.2"
args:
- "--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota"
- "--allow-privileged=true"
- "--etcd-servers=http://127.0.0.1:2379"
- "--insecure-bind-address=0.0.0.0"
- "--service-cluster-ip-range=10.200.100.0/24"
- "--service-node-port-range=30000-37000"
- "--v=2"
volumeMounts:
- mountPath: /etc/kubernetes
name: "etc-kubernetes"
- mountPath: /var/run/kubernetes
name: "var-run-kubernetes"
- mountPath: /var/lib/kubernetes
name: "var-lib-kubernetes"
- name: "kube-controller-manager"
image: "b.gcr.io/kuar/kube-controller-manager:1.1.2"
args:
- "--master=http://127.0.0.1:8080"
- "--v=2"
volumeMounts:
- mountPath: /var/run/kubernetes
name: "var-run-kubernetes"
- mountPath: /var/lib/kubernetes
name: "var-lib-kubernetes"
- name: "kube-scheduler"
image: "b.gcr.io/kuar/kube-scheduler:1.1.2"
args:
- "--master=http://127.0.0.1:8080"
- "--v=2"