config-default.sh 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. NUM_NODES=4
  16. DISK=./kube/kube.vmdk
  17. GUEST_ID=debian7_64Guest
  18. INSTANCE_PREFIX=kubernetes
  19. MASTER_TAG="${INSTANCE_PREFIX}-master"
  20. NODE_TAG="${INSTANCE_PREFIX}-minion"
  21. MASTER_NAME="${INSTANCE_PREFIX}-master"
  22. MASTER_MEMORY_MB=1024
  23. MASTER_CPU=1
  24. NODE_NAMES=($(eval echo ${INSTANCE_PREFIX}-minion-{1..${NUM_NODES}}))
  25. NODE_IP_RANGES="10.244.0.0/16"
  26. MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}"
  27. NODE_MEMORY_MB=2048
  28. NODE_CPU=1
  29. SERVICE_CLUSTER_IP_RANGE="10.244.240.0/20" # formerly PORTAL_NET
  30. # Optional: Enable node logging.
  31. ENABLE_NODE_LOGGING=false
  32. LOGGING_DESTINATION=elasticsearch
  33. # Optional: When set to true, Elasticsearch and Kibana will be setup as part of the cluster bring up.
  34. ENABLE_CLUSTER_LOGGING=false
  35. ELASTICSEARCH_LOGGING_REPLICAS=1
  36. # Optional: Cluster monitoring to setup as part of the cluster bring up:
  37. # none - No cluster monitoring setup
  38. # influxdb - Heapster, InfluxDB, and Grafana
  39. # google - Heapster, Google Cloud Monitoring, and Google Cloud Logging
  40. ENABLE_CLUSTER_MONITORING="${KUBE_ENABLE_CLUSTER_MONITORING:-influxdb}"
  41. # Optional: Install cluster DNS.
  42. ENABLE_CLUSTER_DNS="${KUBE_ENABLE_CLUSTER_DNS:-true}"
  43. DNS_SERVER_IP="10.244.240.240"
  44. DNS_DOMAIN="cluster.local"
  45. DNS_REPLICAS=1
  46. # Optional: Install Kubernetes UI
  47. ENABLE_CLUSTER_UI="${KUBE_ENABLE_CLUSTER_UI:-true}"
  48. # We need to configure subject alternate names (SANs) for the master's certificate
  49. # we generate. While users will connect via the external IP, pods (like the UI)
  50. # will connect via the cluster IP, from the SERVICE_CLUSTER_IP_RANGE.
  51. # In addition to the extra SANS here, we'll also add one for for the service IP.
  52. MASTER_EXTRA_SANS="DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.${DNS_DOMAIN}"
  53. # Optional: if set to true, kube-up will configure the cluster to run e2e tests.
  54. E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false}