Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

same service works in minikube with k8s 1.5.1 but not in minikube with k8s 1.6.3 #1690

Closed
medyagh opened this issue Jul 13, 2017 · 2 comments

Comments

@medyagh
Copy link
Member

medyagh commented Jul 13, 2017

BUG REPORT:

Minikube version (use minikube version):
both
minikube version: v0.20.0
minikube version: v0.18.0

Environment:

  • OS (e.g. from /etc/os-release): MacOs 10.12.14
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): virtuablox
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION):
  • Install tools:
  • Others:

What happened:
I have a Kafka on minikube for K8Guard
however when I use my kafka image ( wurstmeister/kafka:0.10.2.0) on minikube with kuberntes 1.6.3 it gives me an error, that indicates the DNS resolving is not happening for the kubernetes service correctly.

I SSHed to the containers and I was able to dig the kafka service dns. but when I run the whole thing it will fail. (IBM/sarama#912)

I did extensive experiments, I am 100% sure the problem is not from Kafka image and the problem is a change that has happend between 1.5.1 and 1.6.3:

  1. I have pinned down the image tag (and it used to work)
  2. It works in docker-compose.
  3. it works in minikube with kuberentes 1.5.1

so the only place it doesnt work is minikube with kuberentes 1.6.3

here are my service and deployment files for my kafka if you are interested.

https://github.com/k8guard/k8guard-start-from-here/blob/master/minikube/core/kafka-svc.yaml

https://github.com/k8guard/k8guard-start-from-here/blob/master/minikube/core/kafka-deployment.yaml

What you expected to happen:
The kafka should had been accessable normally like in minikube with kuberentes 1.5.1.

How to reproduce it (as minimally and precisely as possible):
run my deployment and service file for kafka in k8guard in minikube with kuberentes 1.6.3 and also 1.5.3. you will see it wont work in 1.6.3

Anything else do we need to know:

@medyagh medyagh changed the title Weird issue, my kafka works in minikube + kubectl 1.5.1 but not minikube+kubectl 1.6.3 my service works in minikube + kubectl 1.5.1 but not minikube+kubectl 1.6.3 Jul 13, 2017
@medyagh medyagh changed the title my service works in minikube + kubectl 1.5.1 but not minikube+kubectl 1.6.3 same service works in minikube + kubectl 1.5.1 but not minikube+kubectl 1.6.3 Jul 13, 2017
@medyagh medyagh changed the title same service works in minikube + kubectl 1.5.1 but not minikube+kubectl 1.6.3 same service works in minikube with k8s 1.5.1 but not minikube with k8s 1.6.3 Jul 13, 2017
@medyagh medyagh changed the title same service works in minikube with k8s 1.5.1 but not minikube with k8s 1.6.3 same service works in minikube with k8s 1.5.1 but not in minikube with k8s 1.6.3 Jul 13, 2017
@medyagh
Copy link
Member Author

medyagh commented Jul 13, 2017

I confirm I was able to fix this issue by doing:

minikube ssh
sudo ip link set docker0 promisc on

this was mentioned in #1568

This confirms that this is a minikube bug. and needs to be fixed.

@r2d4
Copy link
Contributor

r2d4 commented Jul 13, 2017

I'm going to close this in favor of #1568. We'll track it there. I'll work on fixing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants