You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would you like to be added:
I would like to get the resolved nodeconfig used by nodeadm (as json).
I thought of adding a nodeadm config dump command.
We could also add a flag to an existing one in order to dump the config to a file.
Why is this needed:
I use bootstrap scripts and would like to get the nodeconfig, especially the endpoint URL and CA of the cluster to query the api-server.
I currently use a custom cloud-init part handler (added in user-data with karpenter) to get these info.
The text was updated successfully, but these errors were encountered:
I use bootstrap scripts and would like to get the nodeconfig, especially the endpoint URL and CA of the cluster to query the api-server.
Do you mean you want to construct a kubeconfig file using the cluster details that Karpenter passes in via the NodeConfig? What query do you want to send to the API server?
I don't use a kubeconfig file as I send the request via curl (kubectl is not installed of the ami).
I get the endpoints of a service (spegel) and build a hosts.toml config for containerd.
Spegel acts as a registry and I configure containerd to use the instances on others nodes as mirrors. This allow to bootstrap the node (cilium, spegel etc.) even if our internal registry is down. When spegel start it rewrite the hosts.toml with the service hostname (which is not usable before cilium is up).
I don't think it is a widespread usecase. But having a way to output the resolved configuration may also be useful for debugging.😃
The nodeadm init could also have an option to output to a file and we add it in the nodeadm-config.service. This way there is no need to call nodeadm from the user-data.
What would you like to be added:
I would like to get the resolved nodeconfig used by nodeadm (as json).
I thought of adding a
nodeadm config dump
command.We could also add a flag to an existing one in order to dump the config to a file.
Why is this needed:
I use bootstrap scripts and would like to get the nodeconfig, especially the endpoint URL and CA of the cluster to query the api-server.
I currently use a custom cloud-init part handler (added in user-data with karpenter) to get these info.
The text was updated successfully, but these errors were encountered: