Closed happy-machine closed 4 years ago
Hey @happy-machine thanks for opening this issue.
I noticed you have both the --driver=docker
and --vm=true
flags appended to minikube start
. Those are opposing flags, since --driver=docker
tells minikube to run in a docker container, while --vm=true
tells minikube to run in a VM. I'd remove whichever one you don't want.
Could you also run:
minikube delete
minikube start <additonal flags>
and then provide the output of:
minikube addons enable ingress --alsologtostderr
kubectl get po -A
Hopefully it's OK if I close this - there wasn't enough information to make it actionable, and some time has already passed. If you are able to provide additional details, you may reopen it at any point by adding /reopen to your comment.
Here is additional information that may be helpful to us:
Thank you for sharing your experience!
Hi @priyawadhwa,
I am facing the same timeout issue.
Here is the log which you requested above.
$ minikube addons enable ingress --alsologtostderr
I1214 10:35:45.501549 50344 out.go:185] Setting OutFile to fd 1 ...
I1214 10:35:45.502042 50344 out.go:237] isatty.IsTerminal(1) = true
I1214 10:35:45.502050 50344 out.go:198] Setting ErrFile to fd 2...
I1214 10:35:45.502055 50344 out.go:237] isatty.IsTerminal(2) = true
I1214 10:35:45.502143 50344 root.go:279] Updating PATH: /Users/mmukherjee/.minikube/bin
I1214 10:35:45.502935 50344 addons.go:55] Setting ingress=true in profile "minikube"
I1214 10:35:45.502950 50344 addons.go:131] Setting addon ingress=true in "minikube"
I1214 10:35:45.502963 50344 host.go:66] Checking if "minikube" exists ...
I1214 10:35:45.503691 50344 main.go:119] libmachine: COMMAND: /usr/local/bin/VBoxManage showvminfo minikube --machinereadable
I1214 10:35:45.611827 50344 main.go:119] libmachine: STDOUT:
{
name="minikube"
groups="/"
ostype="Linux 2.6 / 3.x / 4.x (64-bit)"
UUID="4c9440b5-e810-4977-8211-ccbb70c9e119"
CfgFile="/Users/mmukherjee/.minikube/machines/minikube/minikube/minikube.vbox"
SnapFldr="/Users/mmukherjee/.minikube/machines/minikube/minikube/Snapshots"
LogFldr="/Users/mmukherjee/.minikube/machines/minikube/minikube/Logs"
hardwareuuid="4c9440b5-e810-4977-8211-ccbb70c9e119"
memory=6000
pagefusion="off"
vram=8
cpuexecutioncap=100
hpet="on"
cpu-profile="host"
chipset="piix3"
firmware="BIOS"
cpus=2
pae="on"
longmode="on"
triplefaultreset="off"
apic="on"
x2apic="off"
nested-hw-virt="off"
cpuid-portability-level=0
bootmenu="disabled"
boot1="dvd"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biosapic="apic"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="on"
paravirtprovider="default"
effparavirtprovider="kvm"
VMState="running"
VMStateChangeTime="2020-12-14T04:55:58.868000000"
graphicscontroller="vboxvga"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
vmprocpriority="default"
storagecontrollername0="SATA"
storagecontrollertype0="IntelAhci"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="30"
storagecontrollerportcount0="30"
storagecontrollerbootable0="on"
"SATA-0-0"="/Users/mmukherjee/.minikube/machines/minikube/boot2docker.iso"
"SATA-ImageUUID-0-0"="b0885204-54f8-4065-93f5-0cabe634d643"
"SATA-tempeject"="off"
"SATA-IsEjected"="off"
"SATA-1-0"="/Users/mmukherjee/.minikube/machines/minikube/disk.vmdk"
"SATA-ImageUUID-1-0"="388287f8-6cb2-4c6c-bc8b-999b55b3bf9b"
"SATA-2-0"="none"
"SATA-3-0"="none"
"SATA-4-0"="none"
"SATA-5-0"="none"
"SATA-6-0"="none"
"SATA-7-0"="none"
"SATA-8-0"="none"
"SATA-9-0"="none"
"SATA-10-0"="none"
"SATA-11-0"="none"
"SATA-12-0"="none"
"SATA-13-0"="none"
"SATA-14-0"="none"
"SATA-15-0"="none"
"SATA-16-0"="none"
"SATA-17-0"="none"
"SATA-18-0"="none"
"SATA-19-0"="none"
"SATA-20-0"="none"
"SATA-21-0"="none"
"SATA-22-0"="none"
"SATA-23-0"="none"
"SATA-24-0"="none"
"SATA-25-0"="none"
"SATA-26-0"="none"
"SATA-27-0"="none"
"SATA-28-0"="none"
"SATA-29-0"="none"
natnet1="nat"
macaddress1="080027F15FB4"
cableconnected1="on"
nic1="nat"
nictype1="virtio"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="ssh,tcp,127.0.0.1,61511,,22"
hostonlyadapter2="vboxnet0"
macaddress2="0800278ECE50"
cableconnected2="on"
nic2="hostonly"
nictype2="virtio"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="off"
uart2="off"
uart3="off"
uart4="off"
lpt1="off"
lpt2="off"
audio="coreaudio"
audio_out="off"
audio_in="off"
clipboard="disabled"
draganddrop="disabled"
SessionName="headless"
VideoMode="720,400,0"@0,0 1
vrde="off"
usb="off"
ehci="off"
xhci="off"
SharedFolderNameMachineMapping1="Users"
SharedFolderPathMachineMapping1="/Users"
VRDEActiveConnection="off"
VRDEClients==0
videocap="off"
videocapaudio="off"
capturescreens=""
capturefilename="/Users/mmukherjee/.minikube/machines/minikube/minikube/minikube.webm"
captureres="1024x768"
capturevideorate=512
capturevideofps=25
captureopts=""
GuestMemoryBalloon=0
GuestOSType="Linux26_64"
GuestAdditionsRunLevel=2
GuestAdditionsVersion="5.2.42 r137960"
GuestAdditionsFacility_VirtualBox Base Driver=50,1607921778174
GuestAdditionsFacility_VirtualBox System Service=50,1607921778502
GuestAdditionsFacility_Seamless Mode=0,1607921778978
GuestAdditionsFacility_Graphics Mode=0,1607921778173
}
I1214 10:35:45.611922 50344 main.go:119] libmachine: STDERR:
{
}
I1214 10:35:45.612023 50344 addons.go:243] installing /etc/kubernetes/addons/ingress-configmap.yaml
I1214 10:35:45.612034 50344 ssh_runner.go:215] scp deploy/addons/ingress/ingress-configmap.yaml.tmpl --> /etc/kubernetes/addons/ingress-configmap.yaml (1251 bytes)
I1214 10:35:45.612054 50344 sshutil.go:45] new ssh client: &{IP:127.0.0.1 Port:61511 SSHKeyPath:/Users/mmukherjee/.minikube/machines/minikube/id_rsa Username:docker}
I1214 10:35:45.659295 50344 addons.go:243] installing /etc/kubernetes/addons/ingress-rbac.yaml
I1214 10:35:45.659315 50344 ssh_runner.go:215] scp deploy/addons/ingress/ingress-rbac.yaml.tmpl --> /etc/kubernetes/addons/ingress-rbac.yaml (4828 bytes)
I1214 10:35:45.666446 50344 addons.go:243] installing /etc/kubernetes/addons/ingress-dp.yaml
I1214 10:35:45.666457 50344 ssh_runner.go:215] scp memory --> /etc/kubernetes/addons/ingress-dp.yaml (8520 bytes)
I1214 10:35:45.673294 50344 ssh_runner.go:148] Run: sudo KUBECONFIG=/var/lib/minikube/kubeconfig /var/lib/minikube/binaries/v1.19.4/kubectl apply -f /etc/kubernetes/addons/ingress-configmap.yaml -f /etc/kubernetes/addons/ingress-rbac.yaml -f /etc/kubernetes/addons/ingress-dp.yaml
I1214 10:35:45.897502 50344 addons.go:342] Verifying addon ingress=true in "minikube"
I1214 10:35:45.906579 50344 out.go:110] π Verifying ingress addon...
π Verifying ingress addon...
I1214 10:35:45.913249 50344 kapi.go:75] Waiting for pod with label "app.kubernetes.io/name=ingress-nginx" in ns "kube-system" ...
I1214 10:35:45.925648 50344 kapi.go:86] Found 3 Pods for label selector app.kubernetes.io/name=ingress-nginx
I1214 10:35:45.925661 50344 kapi.go:96] waiting for pod "app.kubernetes.io/name=ingress-nginx", current state: Pending: [
Thanks
Here is the log from the minikube dashboard.
MountVolume.SetUp failed for volume "webhook-cert" : secret "ingress-nginx-admission" not found
Failed to pull image "us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2": rpc error: code = Unknown desc = error pulling image configuration: Get https://storage.googleapis.com/us.artifacts.k8s-artifacts-prod.appspot.com/containers/images/sha256:4b26fa2d90ae3bd47a8b9b49cf6a49cf195234ed32e4e0fef4787cd679218ff4: x509: certificate signed by unknown authority
Somehow, my system is not able to download the ingress addon from us.gcr.io. Please let me know if there is any workaround.
Solved :) Here is what I did.
Manually downloaded the image in my host system. $ docker pull us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2
Created a tar file of the downloaded image $ docker save us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2 > ingressnginx.tar
Copied the tar to the minikube node $ scp -i $(minikube ssh-key) ${PWD}/ingressnginx.tar docker@$(minikube ip):/home/docker/
Logged into the minikube node $ minikube ssh
Verified the uploaded file in minikube $ pwd $ ls -ltr
Load an image from a tar $ docker load < ingressnginx.tar
From the host machine, enabled the ingress add-ons. $ minikube addons enable ingress π Verifying ingress addon... π The 'ingress' addon is enabled
Hope it will be useful.
Solved :) Here is what I did.
- Manually downloaded the image in my host system. $ docker pull us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2
- Created a tar file of the downloaded image $ docker save us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2 > ingressnginx.tar
- Copied the tar to the minikube node $ scp -i $(minikube ssh-key) ${PWD}/ingressnginx.tar docker@$(minikube ip):/home/docker/
- Logged into the minikube node $ minikube ssh
- Verified the uploaded file in minikube $ pwd $ ls -ltr
- Load an image from a tar $ docker load < ingressnginx.tar
- From the host machine, enabled the ingress add-ons. $ minikube addons enable ingress π Verifying ingress addon... π The 'ingress' addon is enabled
Hope it will be useful.
Thank you, it works on my machine
Just in case for someone it still doesn't work
> minikube stop
> minikube start
> minikube addons enable ingress
Now wait for sometime ! It will install :)
Hey @happy-machine thanks for opening this issue.
I noticed you have both the
--driver=docker
and--vm=true
flags appended tominikube start
. Those are opposing flags, since--driver=docker
tells minikube to run in a docker container, while--vm=true
tells minikube to run in a VM. I'd remove whichever one you don't want.Could you also run:
minikube delete minikube start <additonal flags>
and then provide the output of:
minikube addons enable ingress --alsologtostderr kubectl get po -A
Thank you so muck I solved my problems <3
Steps to reproduce the issue:
minikube start βdriver=docker --cpus=4 --memory='8200m' --vm=true minikube addons enable ingress
Full output of failed command: π Verifying ingress addon...
π£ enable failed: run callbacks: running callbacks: [verifying ingress addon pods : timed out waiting for the condition: timed out waiting for the condition]
πΏ minikube is exiting due to an error. If the above message is not useful, open an issue: π https://github.com/kubernetes/minikube/issues/new/choose
Full output of
minikube start
command used, if not already included: Have tried both latest stable (1.18) which gives:π minikube v1.12.0 on Darwin 10.15.4 β¨ Automatically selected the hyperkit driver π Starting control plane node minikube in cluster minikube π₯ Creating hyperkit VM (CPUs=4, Memory=8200MB, Disk=20000MB) ... β This VM is having trouble accessing https://k8s.gcr.io π‘ To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/ π³ Preparing Kubernetes v1.18.3 on Docker 19.03.12 ... π Verifying Kubernetes components... π Enabled addons: default-storageclass, storage-provisioner π Done! kubectl is now configured to use "minikube"
and 1.16.6-beta.0:
π minikube v1.12.0 on Darwin 10.15.4 β¨ Automatically selected the hyperkit driver π Starting control plane node minikube in cluster minikube π₯ Creating hyperkit VM (CPUs=4, Memory=8200MB, Disk=20000MB) ... β This VM is having trouble accessing https://k8s.gcr.io π‘ To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/ π³ Preparing Kubernetes v1.18.3 on Docker 19.03.12 ... π Verifying Kubernetes components... π Enabled addons: default-storageclass, storage-provisioner π Done! kubectl is now configured to use "minikube"
β /usr/local/bin/kubectl is version 1.16.6-beta.0, which may be incompatible with Kubernetes 1.18.3.
Optional: Full output of
minikube logs
command: