Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

NODE_IP in certain charts is set to the internal ip address #531

Closed
jason-riddle opened this issue Feb 1, 2017 · 1 comment
Closed

NODE_IP in certain charts is set to the internal ip address #531

jason-riddle opened this issue Feb 1, 2017 · 1 comment

Comments

@jason-riddle
Copy link

jason-riddle commented Feb 1, 2017

Prior conversation: #399 (comment).

Some charts refer to setting NODE_IP to the following.

export NODE_IP=$(kubectl --namespace default get nodes -o jsonpath="{.items[0].status.addresses[0].address}")

A quick search (https://github.com/kubernetes/charts/search?utf8=%E2%9C%93&q=NODE_IP) reveals that quite a few charts are doing this.

Depending on your network setup, this may be an internal ip address or an external ip address. In my case it's internal.

kubectl --namespace default get nodes -o jsonpath="{.items[0].status.addresses[0]}"

map[address:10.142.0.2 type:InternalIP]%

A better approach might be to inspect the type to see if it's internal or external. If you have two or more external address, just return the first one.

@jason-riddle jason-riddle changed the title NODE_IP in certain charts is being set to the internal ip address NODE_IP in certain charts is set to the internal ip address Feb 1, 2017
@seanknox
Copy link
Contributor

Closing due to inactivity, feel free to re-open if this is still an issue with specific charts.

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

No branches or pull requests

2 participants