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

[QUESTION] How to add extra args from the command line? #3041

Closed
tibeer opened this issue Apr 5, 2024 · 3 comments
Closed

[QUESTION] How to add extra args from the command line? #3041

tibeer opened this issue Apr 5, 2024 · 3 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@tibeer
Copy link

tibeer commented Apr 5, 2024

What keywords did you search in kubeadm issues before filing this one?

oidc, extraargs

Is this a BUG REPORT or FEATURE REQUEST?

Neither not - just a question

Versions

kubeadm version (use kubeadm version):

kubeadm version: &version.Info{Major:"1", Minor:"28", GitVersion:"v1.28.8", GitCommit:"fc11ff34c34bc1e6ae6981dc1c7b3faa20b1ac2d", GitTreeState:"clean", BuildDate:"2024-03-15T00:05:37Z", GoVersion:"go1.21.8", Compiler:"gc", Platform:"linux/arm64"}

Environment:

What happened?

My current setup is trimmed to execute kubeadm without any configuration file, but instead with every parameter set from the command line itself from a remote host:

kubeadm init --upload-certs --apiserver-cert-extra-sans=<fqdn> --apiserver-advertise-address=0.0.0.0 --control-plane-endpoint=<fqdn>:6443 --pod-network-cidr=<pod_cidr_ipv4>,<pod_cidr_ipv6> --service-cidr=<service_cidr_ipv4>,<service_cidr_ipv6>

What you expected to happen?

I would like to also configure oidc as extra arguments for the apiServer, but I cannot find any command line option that allows me to set extraArgs.

How to reproduce it (as minimally and precisely as possible)?

N/A

Anything else we need to know?

Since it seems kubeadm command line arguments are a second class citizen, should I move to the config file instead?

@neolit123
Copy link
Member

neolit123 commented Apr 5, 2024

hi, we don't provide support on github. there is e.g. #kubeadm on k8s slack.

for this Q

you need to switch to config:
https://kubernetes.io/docs/reference/config-api/kubeadm-config.v1beta3/
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/control-plane-flags/

but note if a flag with the same name is added more than one time it's not supported in v1beta3
#1601

you can use patches to workaround
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/control-plane-flags/#patches

/support

Copy link

github-actions bot commented Apr 5, 2024

Hello, @tibeer 🤖 👋

You seem to have troubles using Kubernetes and kubeadm.
Note that our issue trackers should not be used for providing support to users.
There are special channels for that purpose.

Please see:

@github-actions github-actions bot added the kind/support Categorizes issue or PR as a support question. label Apr 5, 2024
@github-actions github-actions bot closed this as completed Apr 5, 2024
Copy link

github-actions bot commented Apr 5, 2024

Hello, @tibeer 🤖 👋

You seem to have troubles using Kubernetes and kubeadm.
Note that our issue trackers should not be used for providing support to users.
There are special channels for that purpose.

Please see:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

2 participants