config-default.sh 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/env 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. # Azure location to deploy to. (Storage account, resource group, resources)
  16. # Must be be specified in the compact form. ("westus" is ok, "West US" is not)
  17. AZURE_LOCATION="${AZURE_LOCATION:-"westus"}"
  18. # An identifier for the deployment. It can be left blank and an identifier
  19. # will be generated from the date/time.
  20. AZURE_DEPLOY_ID="${AZURE_DEPLOY_ID:-"kube-$(date +"%Y%m%d-%H%M%S")"}"
  21. AZURE_MASTER_SIZE="${AZURE_MASTER_SIZE:-"Standard_A1"}"
  22. AZURE_NODE_SIZE="${AZURE_NODE_SIZE:-"Standard_A1"}"
  23. # Username of the admin account created on the VMs
  24. AZURE_USERNAME="${AZURE_USERNAME:-"kube"}"
  25. # Initial number of worker nodes to provision
  26. NUM_NODES=${NUM_NODES:-3}
  27. # The target Azure subscription ID
  28. # This should be a GUID.
  29. AZURE_SUBSCRIPTION_ID="${AZURE_SUBSCRIPTION_ID:-}"
  30. # The authentication mechanism to use. The default "device" is recommended as
  31. # it requires the least ahead-of-time setup.
  32. # This should be one of: { "device", "client_secret" }
  33. AZURE_AUTH_METHOD="${AZURE_AUTH_METHOD:-"device"}"