Skip to content

Instantly share code, notes, and snippets.

@haircommander
Last active May 23, 2024 18:57
Show Gist options
  • Save haircommander/c165050a7a786c6ceb21bc1409291ea7 to your computer and use it in GitHub Desktop.
Save haircommander/c165050a7a786c6ceb21bc1409291ea7 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
set -x
set -u
IP=$(hostname -I | cut -d' ' -f1)
echo "Using IP: $IP"
export GOROOT=/usr/local/go
export GOPATH=/home/pehunt/go
export KUBE_PATH="$GOPATH/src/github.com/kubernetes/kubernetes"
export GO_OUT=$KUBE_PATH/_output/local/bin/linux/amd64/
export PATH=$PATH:$GOPATH/bin:$KUBE_PATH/third_party/etcd:$KUBE_PATH/_output/local/bin/linux/amd64/
export CONTAINER_RUNTIME=remote
export CGROUP_DRIVER=systemd
export CONTAINER_RUNTIME_ENDPOINT='unix:///var/run/crio/crio.sock'
export ALLOW_SECURITY_CONTEXT=","
export ALLOW_PRIVILEGED=1
export DNS_SERVER_IP=$IP
export API_HOST=$IP
export API_HOST_IP=$IP
export KUBELET_HOST=$IP
export HOSTNAME_OVERRIDE=$IP
export KUBE_ENABLE_CLUSTER_DNS=true
export ENABLE_HOSTPATH_PROVISIONER=true
export KUBE_ENABLE_CLUSTER_DASHBOARD=true
export KUBELET_RESOLV_CONF=/run/systemd/resolve/resolv.conf
export KUBELET_FLAGS="--anonymous-auth=true --authorization-mode=AlwaysAllow --resolv-conf=/run/systemd/resolve/resolv.conf"
export KUBELET_READ_ONLY_PORT="10255"
./hack/local-up-cluster.sh &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment