Skip to content

Instantly share code, notes, and snippets.

@kimat
Created March 1, 2018 14:32
Show Gist options
  • Save kimat/d36becf69397e958a961a60b8771db54 to your computer and use it in GitHub Desktop.
Save kimat/d36becf69397e958a961a60b8771db54 to your computer and use it in GitHub Desktop.

minishift

prerequisite backup or remove

rm -rf ~/.minishift
rm -rf ~/.helm
rm -rf ~/.kubectl

start minishift with correct addons

minishift addons install --defaults
minishift addons enable admin-user
minishift addons enable anyuid
minishift start --vm-driver=virtualbox --cpus=2 --memory=8192
kubectl config use-context minishift
minishift dashboard

login as admin

eval $(minishift oc-env)
oc login -u system:admin

issues when installing helm :

install helm

oc project kube-system
helm init
helm version # should output version for client & server
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'

install an app with helm

oc login -u developer
oc new-project bla
oc login -u system:admin
oc project bla
helm install stable/mysql

install helm using minishift addon ?

cd ~/.installed
git clone https://github.com/jorgemoralespou/minishift-addons
cd minishift-addons
minishift addons install helm
minishift addons apply helm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment