mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 21:30:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # Copyright 2015 The Kubernetes Authors All rights reserved.
 | |
| #
 | |
| # Licensed under the Apache License, Version 2.0 (the "License");
 | |
| # you may not use this file except in compliance with the License.
 | |
| # You may obtain a copy of the License at
 | |
| #
 | |
| #     http://www.apache.org/licenses/LICENSE-2.0
 | |
| #
 | |
| # Unless required by applicable law or agreed to in writing, software
 | |
| # distributed under the License is distributed on an "AS IS" BASIS,
 | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
| # See the License for the specific language governing permissions and
 | |
| # limitations under the License.
 | |
| 
 | |
| ## Contains configuration values for the Binaries downloading and unpacking.
 | |
| 
 | |
| # Directory to store release packages that will be downloaded.
 | |
| RELEASES_DIR=${RELEASES_DIR:-/tmp/downloads}
 | |
| 
 | |
| # Define flannel version to use.
 | |
| FLANNEL_VERSION=${FLANNEL_VERSION:-"0.5.5"}
 | |
| 
 | |
| # Define etcd version to use.
 | |
| ETCD_VERSION=${ETCD_VERSION:-"2.2.1"}
 | |
| 
 | |
| # Define k8s version to use.
 | |
| K8S_VERSION=${K8S_VERSION:-"1.1.1"}
 | |
| 
 | |
| FLANNEL_DOWNLOAD_URL=\
 | |
| "https://github.com/coreos/flannel/releases/download/v${FLANNEL_VERSION}/flannel-${FLANNEL_VERSION}-linux-amd64.tar.gz"
 | |
| 
 | |
| ETCD_DOWNLOAD_URL=\
 | |
| "https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/etcd-v${ETCD_VERSION}-linux-amd64.tar.gz"
 | |
| 
 | |
| K8S_DOWNLOAD_URL=\
 | |
| "https://github.com/kubernetes/kubernetes/releases/download/v${K8S_VERSION}/kubernetes.tar.gz"
 |