-
Notifications
You must be signed in to change notification settings - Fork 134
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
Document default mode does not work for minikube #545
Comments
Any update or workaround for this, I'm having the same issue |
@bradenwright, this works fine. If you use LoadBalancer type (the default type), it will only allocate NodePort. You can access the HAProxy pods using |
Hmm maybe I doing something wrong. I installed into minikube via:
It rsyslog, which has logs being forwarded to it from remote hosts. If I port-forward to the pod 10514, and I've set a host record for dlf.example.com ->
I noticed the pending line so I thought that was related. |
I suppose, you are referring to
It stays in pending because the Service If you want to not have this pending thing showing, you can tell voyager to create a apiVersion: voyager.appscode.com/v1beta1
kind: Ingress
metadata:
name: voyager-ingress
namespace: default
kubernetes.io/ingress.class: "voyager"
annotations:
ingress.appscode.com/type: NodePort
spec:
rules:
- host: dlf.example.com
tcp:
port: '20514'
backend:
serviceName: {{ .Release.Name }}-dlf
servicePort: '10514' |
I did notice I put the ingress.class in the wrong place, but I had tried it without that. That setting helps remove the "pending"
But I can't connect via telnet: |
Regarding telnet, I am not sure what type of service you are running as backend, but this works with curl if you run a http server as backend. For a fully working example: Run https://github.com/appscode/voyager/blob/master/hack/example/e2e.yaml $ kubectl get pods,svc
NAME READY STATUS RESTARTS AGE
po/test-server-6c95d94d6b-46qhs 1/1 Running 0 9s
po/voyager-test-ingress-79f657ff4f-x94rp 0/1 ContainerCreating 0 4s
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/kubernetes 10.0.0.1 <none> 443/TCP 1h
svc/test-server 10.0.0.103 <none> 80/TCP 9s
svc/voyager-test-ingress 10.0.0.158 <nodes> 80:30361/TCP 9s
svc/voyager-test-ingress-stats 10.0.0.199 <none> 56789/TCP 4s
$ minikube ip
192.168.99.100
$ curl 192.168.99.100:30361
{"type":"http","host":"192.168.99.100:30361","podName":"test-server-6c95d94d6b-46qhs","serverPort":":8080","path":"/","method":"GET","headers":{"Accept":["*/*"],"Connection":["close"],"User-Agent":["curl/7.47.0"],"X-Forwarded-For":["172.17.0.1"]}}
$ telnet 192.168.99.100 30361
Trying 192.168.99.100...
Connected to 192.168.99.100.
Escape character is '^]'.
g
HTTP/1.0 400 Bad request
Cache-Control: no-cache
Connection: close
Content-Type: text/html
<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>
Connection closed by foreign host. |
Thanks for the reply, I'll look through the example and see if I can spot the issue. It's an rsyslog server, setup to receive logs.
|
If you can share the YAML files you used to deploy the rsyslog server, I can also give it a try. One thing you can check is, if you create a NodePort service directly to expose the rsyslog server, whether that works or not. |
Here's the main files from the helm chart, I can share pretty much anything. I find a place to put the helm chart and docker image/file if needed. Only thing I'll have to do is generate a new ca/cert/key, only sensitive info
|
IP stays pending for minikube Loadbalancer Ingress.
The text was updated successfully, but these errors were encountered: