config-default.sh 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/bin/bash
  2. # Copyright 2015 The Kubernetes Authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ## Contains configuration values for the CentOS cluster
  16. # The user should have sudo privilege
  17. export MASTER=${MASTER:-"centos@172.10.0.11"}
  18. export MASTER_IP=${MASTER#*@}
  19. # Define all your minion nodes,
  20. # And separated with blank space like <user_1@ip_1> <user_2@ip_2> <user_3@ip_3>.
  21. # The user should have sudo privilege
  22. export NODES=${NODES:-"centos@172.10.0.12 centos@172.10.0.13"}
  23. # Number of nodes in your cluster.
  24. export NUM_NODES=${NUM_NODES:-2}
  25. # Should be removed when NUM_NODES is deprecated in validate-cluster.sh
  26. export NUM_NODES=${NUM_NODES}
  27. # By default, the cluster will use the etcd installed on master.
  28. export ETCD_SERVERS=${ETCD_SERVERS:-"http://$MASTER_IP:2379"}
  29. # define the IP range used for service cluster IPs.
  30. # according to rfc 1918 ref: https://tools.ietf.org/html/rfc1918 choose a private ip range here.
  31. export SERVICE_CLUSTER_IP_RANGE=${SERVICE_CLUSTER_IP_RANGE:-"192.168.3.0/24"}
  32. # define the IP range used for flannel overlay network, should not conflict with above SERVICE_CLUSTER_IP_RANGE
  33. export FLANNEL_NET=${FLANNEL_NET:-"172.16.0.0/16"}
  34. # Admission Controllers to invoke prior to persisting objects in cluster
  35. # If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
  36. export ADMISSION_CONTROL=NamespaceLifecycle,NamespaceExists,LimitRanger,ServiceAccount,SecurityContextDeny,DefaultStorageClass,ResourceQuota
  37. # Extra options to set on the Docker command line.
  38. # This is useful for setting --insecure-registry for local registries.
  39. export DOCKER_OPTS=${DOCKER_OPTS:-""}
  40. # Timeouts for process checking on master and minion
  41. export PROCESS_CHECK_TIMEOUT=${PROCESS_CHECK_TIMEOUT:-180} # seconds.