Istio is not starting up due to insufficient memory in minikube

11/1/2018

I have setup Minikube on my macbook pro laptop.

Docker Community Edition Version 18.06.1-ce-mac73 Mac OS High Sierra 10.13.6 Istio 1.0.3 release

$ minikube version
minikube version: v0.30.0


$ minikube update-check
CurrentVersion: v0.30.0
LatestVersion: v0.30.0


$ helm template install/kubernetes/helm/istio --name istio --namespace istio-system \
  --set security.enabled=false \
  --set ingress.enabled=false \
  --set gateways.istio-ingressgateway.enabled=false \
  --set gateways.istio-egressgateway.enabled=false \
  --set galley.enabled=false \
  --set sidecarInjectorWebhook.enabled=false \
  --set mixer.enabled=false \
  --set prometheus.enabled=false \
  --set global.proxy.envoyStatsd.enabled=false \
  --set pilot.sidecar=false > $HOME/istio-minimal.yaml

$ kubectl create namespace istio-system

$ kubectl apply -f $HOME/istio-minimal.yaml

However, when I check the pods, only 1 pod (containing pilot) is running.

$ kubectl get pods -n istio-system
NAME                          READY   STATUS    RESTARTS   AGE
istio-pilot-d786445f4-sz9sn   0/1     Pending   0          16m

enter image description here

My laptop has 16GB RAM.

-- user674669
istio
kubernetes
minikube

1 Answer

11/2/2018

I read the ideas at https://github.com/kubernetes/minikube/issues/567

I recreated my minikube VM. These instructions worked for me:

$ minikube stop
$ minikube delete
$ minikube start --vm-driver=hyperkit --memory 4096

and I did the rest of the steps in the original post to start istio. This time pilot pod did successfully come.

$ kubectl get pods -n istio-system
NAME                          READY   STATUS    RESTARTS   AGE
istio-pilot-d786445f4-ndxnd   1/1     Running   0          13m

However, I am not sure why mixer and citadel didn't come up.

-- user674669
Source: StackOverflow