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

Using Feature Gates #563

Closed
matthyx opened this issue May 26, 2019 · 6 comments · Fixed by #572
Closed

Using Feature Gates #563

matthyx opened this issue May 26, 2019 · 6 comments · Fixed by #572
Labels
kind/documentation Categorizes issue or PR as related to documentation.

Comments

@matthyx
Copy link

matthyx commented May 26, 2019

What would you like to be documented:
How to specify feature gates in the cluster created by kind.

Why is this needed:
Sometimes I would like to use and test Alpha features with kind, and I don't quite see how to set this up.

@matthyx matthyx added the kind/documentation Categorizes issue or PR as related to documentation. label May 26, 2019
@aojea
Copy link
Contributor

aojea commented May 28, 2019

@neolit123 do you know if is possible to patch the kubeadm config to enable feature gates? if affirmative, can you add an example?

@neolit123
Copy link
Member

it's different per component and you may have to enable a gate for all of them (i.e. it depends what gate you want and component it should affect).

example kind config with patch:

# this config file contains all config fields with comments
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
# patch the generated kubeadm config with some extra settings
kubeadmConfigPatches:
- |
  apiVersion: kubeadm.k8s.io/v1beta1
  kind: ClusterConfiguration
  metadata:
    name: config
  apiServer:
    extraArgs:
      "feture-gates": "FeatureGateName=true"
  scheduler:
    extraArgs:
      "feture-gates": "FeatureGateName=true"
  controllerManager:
    extraArgs:
      "feture-gates": "FeatureGateName=true"
- |
  apiVersion: kubeadm.k8s.io/v1beta1
  kind: InitConfiguration
  metadata:
    name: config
  nodeRegistration:
    kubeletExtraArgs:
      "feture-gates": "FeatureGateName=true"
# 1 control plane node and 3 workers
nodes:
# the control plane node config
- role: control-plane
# the three workers
- role: worker
- role: worker
- role: worker

more info on customizing kubeadm control plane components:
https://kubernetes.io/docs/setup/independent/control-plane-flags/

@timfeirg
Copy link

typo in the extraArgs value @neolit123

@neolit123
Copy link
Member

i can't see the typo. feel free to send a PR to fix it. @timfeirg

@matthyx
Copy link
Author

matthyx commented Dec 19, 2019

feture-gates -> feature-gates

@aojea
Copy link
Contributor

aojea commented Dec 19, 2019

it was fixed when it was added to the docs
https://kind.sigs.k8s.io/docs/user/quick-start/

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

Successfully merging a pull request may close this issue.

4 participants