config-default.sh 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/bin/bash
  2. # Copyright 2014 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. INSTANCE_PREFIX=kubernetes
  16. AZ_LOCATION='West US'
  17. TAG=testing
  18. AZ_CS_PREFIX=kube
  19. AZ_VNET=${AZ_VNET:-MyVnet}
  20. AZ_SUBNET=${AZ_SUBNET:-Subnet-1}
  21. AZ_IMAGE=b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_1-LTS-amd64-server-20140927-en-us-30GB
  22. AZ_CS="" # is set in azure-legacy/util.sh verify-prereqs
  23. AZ_SSH_KEY=$HOME/.ssh/azure_rsa
  24. AZ_SSH_CERT=$HOME/.ssh/azure.pem
  25. NUM_MINIONS=${NUM_MINIONS:-4}
  26. MASTER_SIZE='Medium'
  27. MINION_SIZE='Medium'
  28. MASTER_NAME="${INSTANCE_PREFIX}-master"
  29. MASTER_TAG="${INSTANCE_PREFIX}-master"
  30. MINION_TAG="${INSTANCE_PREFIX}-minion"
  31. MINION_NAMES=($(eval echo ${INSTANCE_PREFIX}-minion-{1..${NUM_MINIONS}}))
  32. MINION_IP_RANGES=($(eval echo "10.244.{1..${NUM_MINIONS}}.0/24"))
  33. MINION_SCOPES=""
  34. SERVICE_CLUSTER_IP_RANGE="10.244.244.0/16" # formerly PORTAL_NET
  35. # Optional: Install node logging
  36. ENABLE_NODE_LOGGING=false
  37. LOGGING_DESTINATION=elasticsearch # options: elasticsearch, gcp
  38. # Optional: When set to true, Elasticsearch and Kibana will be setup as part of the cluster bring up.
  39. ENABLE_CLUSTER_LOGGING=false
  40. ELASTICSEARCH_LOGGING_REPLICAS=1
  41. # Optional: Cluster monitoring to setup as part of the cluster bring up:
  42. # none - No cluster monitoring setup
  43. # influxdb - Heapster, InfluxDB, and Grafana
  44. # google - Heapster, Google Cloud Monitoring, and Google Cloud Logging
  45. ENABLE_CLUSTER_MONITORING="${KUBE_ENABLE_CLUSTER_MONITORING:-influxdb}"
  46. # Optional: Install Kubernetes UI
  47. ENABLE_CLUSTER_UI="${KUBE_ENABLE_CLUSTER_UI:-true}"
  48. # Admission Controllers to invoke prior to persisting objects in cluster
  49. ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota