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
Support turning on alpha features using feature gates #896
Comments
/cc @kubernetes/sig-node @timstclair , we can't turn on CRI in minikube without it supporting the feature gates. |
+1 |
/cc @jlowdermilk |
We can already enable this with the |
@r2d4 I was not able to enable feature gate using |
Yeah, we might need to add some code to make featuregate's work. I'll look through the code now. |
Sorry, it looks like you can't enable them through the config. How can I validate that these are actually enabled? Would something like this work? diff --git a/pkg/localkube/servers.go b/pkg/localkube/servers.go
index 251c8ff..b812bb7 100644
--- a/pkg/localkube/servers.go
+++ b/pkg/localkube/servers.go
@@ -18,6 +18,7 @@ package localkube
import (
"fmt"
+ "k8s.io/kubernetes/pkg/util/config"
)
// Servers allows operations to be performed on many servers at once.
@@ -36,6 +37,7 @@ func (servers Servers) Get(name string) (Server, error) {
// StartAll starts all services, starting from 0th item and ascending.
func (servers Servers) StartAll() {
+ config.DefaultFeatureGate.Set("AllAlpha=true")
for _, server := range servers {
fmt.Printf("Starting %s...\n", server.Name())
server.Start()
|
@r2d4 I'm not super familiar with minikube, but if you want to always enable alpha features the above snippet will work. You would need similar line in every kube system binary (kublet, apiserver, controller manager, scheduler etc). featuregates are set via a flag (with same value) on every system component if you are deploying k8s normally. |
@r2d4 this should work since localkube is a single binary and all components are started in one process. |
Any thoughts on the UI to configure this through minikube? I don't think it makes much sense to do it as a special case of the extra config, but that wouldn't require an extra flag |
Is there any downside to enabling them all, all the time? |
One downside could be that the alpha features don't work well together. There is one jenkins build that enabling all of them (https://k8s-testgrid.appspot.com/google-gce#gce-alpha-features), but it runs very few tests. |
This sounds good to me. |
This sets the feature gates on every kube-system component (apiserver, kubelet, etc.) Fixes kubernetes#896
This sets the feature gates on every kube-system component (apiserver, kubelet, etc.) Fixes kubernetes#896
@r2d4 thanks for adding the feature! |
minikube already supports all alpha api resources to encourage people to try them out. It should also support turning on alpha features in the feature gate.
https://github.com/kubernetes/kubernetes/blob/v1.5.0-beta.2/pkg/genericapiserver/options/server_run_options.go#L531
https://github.com/kubernetes/kubernetes/blob/v1.5.0-beta.2/pkg/util/config/feature_gate.go
The text was updated successfully, but these errors were encountered: