config-default.sh 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. ##########################################################
  16. #
  17. # Common parameters for Kubernetes
  18. #
  19. ##########################################################
  20. # Default number of nodes to make. You can change this as needed
  21. NUM_NODES=3
  22. # Range of IPs assigned to pods
  23. NODE_IP_RANGES="10.244.0.0/16"
  24. # IPs used by Kubernetes master
  25. MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}"
  26. # Range of IPs assigned by Kubernetes to services
  27. SERVICE_CLUSTER_IP_RANGE="10.244.240.0/20"
  28. ##########################################################
  29. #
  30. # Advanced parameters for Kubernetes
  31. #
  32. ##########################################################
  33. # The instance prefix is the beginning of the name given to each VM we create
  34. # If this is changed, you can have multiple kubernetes clusters per project
  35. # Note that even if you don't change it, each tenant/project can have its own
  36. # Kubernetes cluster
  37. INSTANCE_PREFIX=kubernetes
  38. # Name of the user used to configure the VM
  39. # We use cloud-init to create the user
  40. VM_USER=kube
  41. # SSH options for how we connect to the Kubernetes VMs
  42. # We set the user known hosts file to /dev/null because we are connecting to new VMs.
  43. # When working in an environment where there is a lot of VM churn, VM IP addresses
  44. # will be reused, and the ssh keys will be different. This prevents us from seeing error
  45. # due to this, and it will not save the SSH key to the known_hosts file, so users will
  46. # still have standard ssh security checks.
  47. SSH_OPTS="-oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oLogLevel=ERROR -C"
  48. # Optional: Enable node logging.
  49. # Note: currently untested
  50. ENABLE_NODE_LOGGING=false
  51. LOGGING_DESTINATION=elasticsearch
  52. # Optional: When set to true, Elasticsearch and Kibana will be setup
  53. # Note: currently untested
  54. ENABLE_CLUSTER_LOGGING=false
  55. ELASTICSEARCH_LOGGING_REPLICAS=1
  56. # Optional: Cluster monitoring to setup as part of the cluster bring up:
  57. # none - No cluster monitoring setup
  58. # influxdb - Heapster, InfluxDB, and Grafana
  59. # google - Heapster, Google Cloud Monitoring, and Google Cloud Logging
  60. # Note: currently untested
  61. ENABLE_CLUSTER_MONITORING="${KUBE_ENABLE_CLUSTER_MONITORING:-influxdb}"
  62. # Optional: Install cluster DNS.
  63. ENABLE_CLUSTER_DNS="${KUBE_ENABLE_CLUSTER_DNS:-true}"
  64. DNS_SERVER_IP="10.244.240.240"
  65. DNS_DOMAIN="cluster.local"
  66. DNS_REPLICAS=1
  67. # Optional: Install Kubernetes UI
  68. ENABLE_CLUSTER_UI=true
  69. # We need to configure subject alternate names (SANs) for the master's certificate
  70. # we generate. While users will connect via the external IP, pods (like the UI)
  71. # will connect via the cluster IP, from the SERVICE_CLUSTER_IP_RANGE.
  72. # In addition to the extra SANS here, we'll also add one for for the service IP.
  73. MASTER_EXTRA_SANS="DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.${DNS_DOMAIN}"
  74. # Optional: if set to true, kube-up will configure the cluster to run e2e tests.
  75. E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false}