# etcd url location. Point this to the server where etcd runs FLANNEL_ETCD_ENDPOINTS="http://10.2.1.30:2379,http://10.2.1.31:2379,http://10.2.1.33:2379"
# etcd config key. This is the configuration key that flannel queries # For address range assignment FLANNEL_ETCD_PREFIX="/kube-centos/network"
# Any additional options that you want to pass FLANNEL_OPTIONS="--iface=ens192"
### # kubernetes system config # # The following values are used to configure various aspects of all # kubernetes services, including # # kube-apiserver.service # kube-controller-manager.service # kube-scheduler.service # kubelet.service # kube-proxy.service # logging to stderr means we get it in the systemd journal KUBE_LOGTOSTDERR="--logtostderr=true"
# journal message level, 0 is debug KUBE_LOG_LEVEL="--v=0"
# Should this cluster be allowed to run privileged docker containers KUBE_ALLOW_PRIV="--allow-privileged=false"
# How the controller-manager, scheduler, and proxy find the apiserver KUBE_MASTER="--master=http://10.2.1.37:8080"
准备/etc/kubernetes/apiserver文件
### ## kubernetes system config ##
## The following values are used to configure the kube-apiserver ## The address on the local server to listen to. #KUBE_API_ADDRESS="--address=bc.authorization.k8s.io/v10.2.1.30" KUBE_API_ADDRESS="--advertise-address=10.2.1.37 --bind-address=10.2.1.37 --insecure-bind-address=10.2.1.37"
## The port on the local server to listen on. KUBE_API_PORT="--port=8080"
## Port minions listen on KUBELET_PORT="--kubelet-port=10250"
## Comma separated list of nodes in the etcd cluster KUBE_ETCD_SERVERS="--etcd-servers=http://10.2.1.30:2379,http://10.2.1.31:2379,http://10.2.1.33:2379"
## Address range to use for services #KUBE_SERVICE_ADDREKUBELET_POD_INFRA_CONTAINERSSES="--service-cluster-ip-range=172.17.0.0/16"