Created
July 4, 2019 12:54
-
-
Save giuseppe/1d9f98f13ef238d7f835ae496cafd4af to your computer and use it in GitHub Desktop.
local k8s CRI-O
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
set -x | |
set -u | |
IP=$(hostname -I | cut -d' ' -f1) | |
echo "Using IP: $IP" | |
export GOPATH=/home/gscrivano/src/gopath | |
export PATH=$PATH:$GOPATH/bin:$GOPATH/src/k8s.io/kubernetes/third_party/etcd:$GOPATH/src/k8s.io/kubernetes/_output/local/bin/linux/amd64/ | |
export FEATURE_GATES="AllAlpha=false,RunAsGroup=true" | |
export CONTAINER_RUNTIME=remote | |
export CGROUP_DRIVER=systemd | |
export CONTAINER_RUNTIME_ENDPOINT='/var/run/crio/crio.sock --runtime-request-timeout=5m' | |
export ALLOW_SECURITY_CONTEXT="," | |
export ALLOW_PRIVILEGED=1 | |
#export DNS_SERVER_IP=$IP | |
#export API_HOST=$IP | |
#export API_HOST_IP=$IP | |
export KUBE_ENABLE_CLUSTER_DNS=true | |
export ENABLE_HOSTPATH_PROVISIONER=true | |
export KUBE_ENABLE_CLUSTER_DASHBOARD=true | |
./hack/local-up-cluster.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment