This is an old revision of the document!


Script is here, run one of:

$ wget -q -O - https://get.k8s.io | bash
$ curl -fsSL https://get.k8s.io | bash

Given kubernetes.tar.gz:

$ tar xzf kubernetes.tar.gz

then script runs:

  • download_kube_binaries
  • create_cluster

Invokes get-kube-binaries.sh:

# Use the script from inside the Kubernetes tarball to fetch the client and
# server binaries (if not included in kubernetes.tar.gz).
function download_kube_binaries {
  (
    cd kubernetes
    if [[ -x ./cluster/get-kube-binaries.sh ]]; then
      # Make sure to use the same download URL in get-kube-binaries.sh
      KUBERNETES_RELEASE_URL="${KUBERNETES_RELEASE_URL}" \
        ./cluster/get-kube-binaries.sh
    fi
  )
}
function create_cluster {
  if [[ -n "${KUBERNETES_SKIP_CREATE_CLUSTER-}" ]]; then
    exit 0
  fi
  echo "Creating a kubernetes on ${KUBERNETES_PROVIDER:-gce}..."
  (
    cd kubernetes
    ./cluster/kube-up.sh
    echo "Kubernetes binaries at ${PWD}/cluster/"
    if [[ ":$PATH:" != *":${PWD}/cluster:"* ]]; then
      echo "You may want to add this directory to your PATH in \$HOME/.profile"
    fi

    echo "Installation successful!"
  )
}
  • kubernetes_on_fedora.1523180730.txt.gz
  • Last modified: 2018/04/08 09:45
  • by rpjday