- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 249 for KubeConfig (0.52 sec)
-
cmd/kubeadm/app/cmd/util/join.go
// Kubernetes cluster (the current cluster in the kubeconfig file) func GetJoinWorkerCommand(kubeConfigFile, token string, skipTokenPrint bool) (string, error) { return getJoinCommand(kubeConfigFile, token, "", false, skipTokenPrint, false) } // GetJoinControlPlaneCommand returns the kubeadm join command for a given token and // Kubernetes cluster (the current cluster in the kubeconfig file)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 3.9K bytes - Viewed (0) -
pkg/kubelet/certificate/bootstrap/bootstrap.go
// Short-circuit if the kubeconfig file exists and is valid. ok, err := isClientConfigStillValid(kubeconfigPath) if err != nil { return err } if ok { klog.V(2).InfoS("Kubeconfig exists and is valid, skipping bootstrap", "path", kubeconfigPath) return nil } klog.V(2).InfoS("Using bootstrap kubeconfig to generate TLS client cert, key and kubeconfig file")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 27 08:04:25 UTC 2022 - 14.2K bytes - Viewed (0) -
cmd/kube-scheduler/app/options/options_test.go
})) defer insecureserver.Close() // config file and kubeconfig configFile := filepath.Join(tmpDir, "scheduler.yaml") configKubeconfig := filepath.Join(tmpDir, "config.kubeconfig") if err := os.WriteFile(configFile, []byte(fmt.Sprintf(` apiVersion: kubescheduler.config.k8s.io/v1 kind: KubeSchedulerConfiguration clientConnection: kubeconfig: '%s' leaderElection:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 30.3K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/phases/init/kubeletfinalize.go
} currentContext, ok := kubeconfig.Contexts[kubeconfig.CurrentContext] if !ok { return errors.Errorf("the file %q is not a valid kubeconfig: %q set as current-context, but not found in context list", kubeconfigPath, kubeconfig.CurrentContext) } userName := currentContext.AuthInfo if len(userName) == 0 { return errors.Errorf("the file %q is not a valid kubeconfig: empty username for current context", kubeconfigPath)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 10:54:51 UTC 2024 - 6.8K bytes - Viewed (0) -
pkg/kube/util.go
if kubeconfig != "" { info, err := os.Stat(kubeconfig) if err != nil || info.Size() == 0 { // If the specified kubeconfig doesn't exists / empty file / any other error // from file stat, fall back to default kubeconfig = "" } } // Config loading rules: // 1. kubeconfig if it not empty string // 2. Config(s) in KUBECONFIG environment variable // 3. In cluster config if running in-cluster
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 05:10:23 UTC 2024 - 18.6K bytes - Viewed (0) -
cmd/kube-controller-manager/app/options/options.go
} kubeconfig, err := clientcmd.BuildConfigFromFlags(s.Master, s.Generic.ClientConnection.Kubeconfig) if err != nil { return nil, err } kubeconfig.DisableCompression = true kubeconfig.ContentConfig.AcceptContentTypes = s.Generic.ClientConnection.AcceptContentTypes kubeconfig.ContentConfig.ContentType = s.Generic.ClientConnection.ContentType kubeconfig.QPS = s.Generic.ClientConnection.QPS
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 13 20:41:50 UTC 2023 - 20.7K bytes - Viewed (0) -
common/scripts/kind_provisioner.sh
fi } function install_calico { local KUBECONFIG="${1}" local CONFIG_DIR="${2}" echo "Setting up ambient cluster, Calico CNI will be used." kubectl --kubeconfig="$KUBECONFIG" apply -f "${CONFIG_DIR}"/calico.yaml kubectl --kubeconfig="$KUBECONFIG" wait --for condition=ready -n kube-system pod -l k8s-app=calico-node --timeout 90s
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 19:12:55 UTC 2024 - 17.3K bytes - Viewed (0) -
cni/pkg/plugin/kubernetes.go
// Some config can be passed in a kubeconfig file kubeconfig := conf.Kubernetes.Kubeconfig config, err := kube.DefaultRestConfig(kubeconfig, "") if err != nil { log.Errorf("Failed setting up kubernetes client with kubeconfig %s", kubeconfig) return nil, err } log.Debugf("istio-cni set up kubernetes client with kubeconfig %s", kubeconfig) // Create the client
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Feb 10 00:31:55 UTC 2024 - 3.6K bytes - Viewed (0) -
cni/pkg/install/testdata/istio-cni.conf
"type": "istio-cni", "ipam": {}, "dns": {}, "plugin_log_level": "debug", "log_uds_address": "", "cni_event_address": "", "ambient_enabled": false, "kubernetes": { "kubeconfig": "/path/to/kubeconfig", "exclude_namespaces": [ "" ] }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 319 bytes - Viewed (0) -
pkg/kube/multicluster/secretcontroller.go
return nil } // DefaultBuildClientsFromConfig creates kube.Clients from the provided kubeconfig. This is overridden for testing only func DefaultBuildClientsFromConfig(kubeConfig []byte, clusterID cluster.ID, configOverrides ...func(*rest.Config)) (kube.Client, error) { restConfig, err := kube.NewUntrustedRestConfig(kubeConfig, configOverrides...) if err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 02:13:10 UTC 2024 - 12.7K bytes - Viewed (0)