Skip to content

Instantly share code, notes, and snippets.

@havarnov
Last active July 26, 2018 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save havarnov/0e3b91906885caefc17bd2d7dfac905c to your computer and use it in GitHub Desktop.
Save havarnov/0e3b91906885caefc17bd2d7dfac905c to your computer and use it in GitHub Desktop.
# minikube https://kubernetes.io/docs/setup/minikube/
# enable hyper-v
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
# install minikube https://github.com/kubernetes/minikube/releases
# create hyper-v
# url https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/get-started/create-a-virtual-switch-for-hyper-v-virtual-machines
# named 'Primary Virtual Switch'
# start minikube
minikube start --vm-driver hyperv --hyperv-virtual-switch "Primary Virtual Switch" --insecure-registry localhost:5000
# use docker running "inside" minikube
# the following is for git bash (windows)
eval $(minikube docker-env)
docker run -d -p 5000:5000 --restart=always --name registry -v //data/docker-registry://var/lib/registry registry:2
# orleans https://github.com/OrleansContrib/Orleans.Clustering.Kubernetes
git clone https://github.com/OrleansContrib/Orleans.Clustering.Kubernetes.git
cd Orleans.Clustering.Kubernetes/samples/KubeSilo
dotnet publish -c Release -o PublishOutput
cd PublishOutput
docker build -t localhost:5000/kubesilo:latest .
docker push localhost:5000/kubesilo:latest
kubectl.exe create sa orleans
kubectl create clusterrolebinding orleans-admin-binding --clusterrole=cluster-admin --user=system:serviceaccount:orleans:default
kubectl.exe create namespace orleans
kubectl.exe run kubesilo --image=localhost:5000/kubesilo:latest --namespace orleans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment