Accessing exposed service from inside #413
-
Hello,
Changing the controller config from |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
I think you hit the problem that an internal request to the load balancer does not go through the external ip and so does not use the PROXY protocol. This seems to be some long known kubernetes problem and is addressed with a potential solution here: hetznercloud/hcloud-cloud-controller-manager#58 (comment). Don't know yet how we should handle this best "out-of-the-box"? |
Beta Was this translation helpful? Give feedback.
-
Thanks, @ifeulner. |
Beta Was this translation helpful? Give feedback.
-
@Biacode You can try to the end of the kube.tf file via the Otherwise, just pull the service with kubectl get svc -o yaml, edit and apply it with -f option. You can also use kubectl edit, but not very infra as code. It should be the full hostname that points to the LB IP, it does not matter if you have this set up on the root domain or the subname. If you are not sure, just check your DNS root file. |
Beta Was this translation helpful? Give feedback.
-
Converting this to a discussion, where it belongs better :) |
Beta Was this translation helpful? Give feedback.
-
Thanks, @mysticaltech. |
Beta Was this translation helpful? Give feedback.
@Biacode You can try to the end of the kube.tf file via the
nginx_ingress_values
variable, basically you have to put it under service -> annotations, normally it should install the updated service for you.Otherwise, just pull the service with kubectl get svc -o yaml, edit and apply it with -f option. You can also use kubectl edit, but not very infra as code.
It should be the full hostname that points to the LB IP, it does not matter if you have this set up on the root domain or the subname. If you are not sure, just check your DNS root file.