Skip to content

Instantly share code, notes, and snippets.

@brotandgames
Last active October 5, 2018 10:23
Show Gist options
  • Save brotandgames/04fee21a60df2c2f7dade43d7cbdc9a4 to your computer and use it in GitHub Desktop.
Save brotandgames/04fee21a60df2c2f7dade43d7cbdc9a4 to your computer and use it in GitHub Desktop.
# Setup working directory
export WORKDIR=~/rke-test
mkdir ${WORKDIR}
cd ${WORKDIR}
# Configure Kubernetes Cluster - follow the instructions
# This will create an config.yaml file which you can adjust later on
rke config
# Deploy Kubernetes Cluster
# This will create your Cluster and output a kube_config_cluster.yaml
rke up
export KUBECONFIG=${WORKDIR}/kube_config_cluster.yml
# Test
kubectl --kubeconfig ${KUBECONFIG} get pods,svc,ing --all-namespaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment