config-build.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. # Copyright 2015 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. ## Contains configuration values for the Binaries downloading and unpacking.
  16. # Directory to store release packages that will be downloaded.
  17. RELEASES_DIR=${RELEASES_DIR:-/tmp/downloads}
  18. # Define flannel version to use.
  19. FLANNEL_VERSION=${FLANNEL_VERSION:-"0.5.5"}
  20. # Define etcd version to use.
  21. ETCD_VERSION=${ETCD_VERSION:-"3.0.4"}
  22. # Define k8s version to use.
  23. K8S_VERSION=${K8S_VERSION:-"1.1.1"}
  24. FLANNEL_DOWNLOAD_URL=\
  25. "https://github.com/coreos/flannel/releases/download/v${FLANNEL_VERSION}/flannel-${FLANNEL_VERSION}-linux-amd64.tar.gz"
  26. ETCD_DOWNLOAD_URL=\
  27. "https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/etcd-v${ETCD_VERSION}-linux-amd64.tar.gz"
  28. K8S_DOWNLOAD_URL=\
  29. "https://github.com/kubernetes/kubernetes/releases/download/v${K8S_VERSION}/kubernetes.tar.gz"