config-default.sh 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. # Sane defaults for dev environments. The following variables can be easily overriden
  16. # by setting each as a ENV variable ahead of time:
  17. # KUBE_IMAGE, KUBE_MASTER_FLAVOR, KUBE_NODE_FLAVOR, NUM_NODES, NOVA_NETWORK and SSH_KEY_NAME
  18. # Shared
  19. KUBE_IMAGE="${KUBE_IMAGE-f2a71670-ced3-4274-80b6-0efcd0f8f91b}" # CoreOS(Beta)
  20. SSH_KEY_NAME="${SSH_KEY_NAME-id_kubernetes}"
  21. NOVA_NETWORK_LABEL="kubernetes-pool-net"
  22. NOVA_NETWORK_CIDR="${NOVA_NETWORK-192.168.0.0/24}"
  23. INSTANCE_PREFIX="kubernetes"
  24. # Master
  25. KUBE_MASTER_FLAVOR="${KUBE_MASTER_FLAVOR-general1-1}"
  26. MASTER_NAME="${INSTANCE_PREFIX}-master"
  27. MASTER_TAG="tags=${INSTANCE_PREFIX}-master"
  28. # Node
  29. KUBE_NODE_FLAVOR="${KUBE_NODE_FLAVOR-general1-2}"
  30. NUM_NODES="${NUM_NODES-4}"
  31. NODE_TAG="tags=${INSTANCE_PREFIX}-node"
  32. NODE_NAMES=($(eval echo ${INSTANCE_PREFIX}-node-{1..${NUM_NODES}}))
  33. KUBE_NETWORK="10.240.0.0/16"
  34. SERVICE_CLUSTER_IP_RANGE="10.0.0.0/16" # formerly PORTAL_NET
  35. # Optional: Enable node logging.
  36. ENABLE_NODE_LOGGING=false
  37. LOGGING_DESTINATION=elasticsearch
  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 cluster DNS.
  47. ENABLE_CLUSTER_DNS="${KUBE_ENABLE_CLUSTER_DNS:-true}"
  48. DNS_SERVER_IP="10.0.0.10"
  49. DNS_DOMAIN="cluster.local"
  50. DNS_REPLICAS=1
  51. # Optional: Install Kubernetes UI
  52. ENABLE_CLUSTER_UI="${KUBE_ENABLE_CLUSTER_UI:-true}"