config-test.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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=2
  16. DISK=./kube/kube.vmdk
  17. GUEST_ID=debian7_64Guest
  18. INSTANCE_PREFIX="e2e-test-${USER}"
  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=1024
  28. NODE_CPU=1
  29. SERVICE_CLUSTER_IP_RANGE="10.244.240.0/20" # formerly PORTAL_NET
  30. # Optional: if set to true, kube-up will configure the cluster to run e2e tests.
  31. E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false}