This repository has been archived by the owner on Jul 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 272
/
config.sh
103 lines (81 loc) · 3.94 KB
/
config.sh
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
if [[ ${IP_MODE} = "ipv4" ]]; then
# DIND_SUBNET="10.192.0.0"
# DIND_SUBNET_SIZE=16
:
else
# DinD subnet (expected to be /64)
DIND_SUBNET="${DIND_SUBNET:-fd00:10::}"
fi
# Apiserver port
# APISERVER_PORT=${APISERVER_PORT:-8080}
# Number of nodes. 0 nodes means just one master node.
# In case of NUM_NODES=0 'node-role.kubernetes.io/master' taint is removed
# from the master node.
NUM_NODES=${NUM_NODES:-2}
# Use non-dockerized build
# KUBEADM_DIND_LOCAL=
# Image name base for k-d-c
DIND_IMAGE_BASE="${DIND_IMAGE_BASE:-mirantis/kubeadm-dind-cluster}"
# Specify DIND image to use. mirantis/kubeadm-dind-cluster:local
# is the one that is built locally using build/build-local.sh
DIND_IMAGE="${DIND_IMAGE:-${DIND_IMAGE_BASE}:local}"
# Set DOWNLOAD_KUBECTL to non-empty string to download
# kubectl. Should not be used with BUILD_KUBEADM / BUILD_HYPERKUBE
# DOWNLOAD_KUBECTL=y
# Set to non-empty string to enable building kubeadm
# BUILD_KUBEADM=y
# Set to non-empty string to enable building hyperkube
# BUILD_HYPERKUBE=y
# Use pre-built Kubernetes binaries (hyperkube and kubeadm) on the
# host, located in the specified directory. When this environment
# variable is set, BUILD_KUBEADM and BUILD_HYPERKUBE will be ignored.
# This will not work with a remote docker engine (e.g. started via
# docker-machine on GCE) unless the file is placed on the target machine.
DIND_K8S_BIN_DIR="${DIND_K8S_BIN_DIR:-}"
# Set custom URL for Dashboard yaml file
# DASHBOARD_URL="${DASHBOARD_URL:-https://rawgit.com/kubernetes/dashboard/bfab10151f012d1acc5dfb1979f3172e2400aa3c/src/deploy/kubernetes-dashboard.yaml}"
# or for versions >= 1.15,
# DASHBOARD_URL="${DASHBOARD_URL:-https://rawgit.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml}"
# CNI plugin to use (bridge, flannel, calico, calico-kdd, weave). Defaults to 'bridge'
# In case of 'bridge' plugin, additional hacks are employed to bridge
# DIND containers together.
CNI_PLUGIN="${CNI_PLUGIN:-bridge}"
# When using Calico with Kubernetes as the datastore (calico-kdd) your
# controller manager needs to be started with `--cluster-cidr=192.168.0.0/16`.
# More information here: http://docs.projectcalico.org/v2.3/getting-started/kubernetes/installation/hosted/kubernetes-datastore/
# POD_NETWORK_CIDR="192.168.0.0/16"
# Set SKIP_SNAPSHOT to non-empty string to skip making the snapshot.
# This may be useful for CI environment where the cluster is never
# restarted after it's created.
# SKIP_SNAPSHOT=y
# Disable parallel running of e2e tests. Use this if you use a resource
# constrained machine for e2e tests and get some flakes.
# DIND_NO_PARALLEL_E2E=y
# Any options to be passed to the docker run both on init and reup.
# By default it's empty
# MASTER_EXTRA_OPTS=" "
# Define which DNS service to run
# possible values are coredns (default) and kube-dns
DNS_SERVICE="${DNS_SERVICE:-coredns}"
# Feature Gates
# This value will be passed to kube-apiserver, kube-controller-manager and kube-scheduler
# you can set special value 'none' not to set any feature gates on them.
# FEATURE_GATES=""
# Kubelet Feature Gates
# you can set special value 'none' not to set any feature gates on kubelet.
# KUBELET_FEATURE_GATES=""
# You can configure extra component args for kube-apiservers
# APISERVER_underscored_option_name will be converted --hyphenated-option-name
# e.g. APISERVER_admission_control=xxx,yyy -> --admission-control=xxx,yyy
# APISERVER_xxx_yyy=zzz
# Extra component args for kube-controller-manager
# CONTROLLER_MANAGER_underscored_option_name will be converted --hyphenated-option-name
# CONTROLLER_MANAGER_xxx=yyy
# Extra component args for kube-scheduler
# SCHEDULER_underscored_option_name will be converted --hyphenated-option-name
# SCHEDULER_xxx=yyy
# Enable Ceph support. DANGER: you must take care of unmapping all
# the RBDs (e.g. by removing all the pods that use RBDs) before
# stopping / restarting the cluster, or they'll get stuck possibly
# blocking even system reboot.
# ENABLE_CEPH=y