Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 277 for KUBECONFIG (0.17 sec)

  1. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    		existingKubeConfig *clientcmdapi.Config
    		kubeConfig         *clientcmdapi.Config
    		expectedError      bool
    	}{
    		{ // if there is no existing KubeConfig, creates the kubeconfig
    			name:       "KubeConfig doesn't exist",
    			kubeConfig: config,
    		},
    		{ // if KubeConfig is invalid raise error
    			name:               "KubeConfig is invalid",
    			existingKubeConfig: invalidConfig,
    			kubeConfig:         invalidConfig,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/kubeconfig/doc.go

    limitations under the License.
    */
    
    package kubeconfig
    
    /*
    
    	PHASE: KUBECONFIG
    
    	INPUTS:
    		From InitConfiguration
    			The API Server endpoint (AdvertiseAddress + BindPort) is required so the kubeconfig file knows where to find the control-plane
    			The KubernetesDir path is required for knowing where to put the kubeconfig files
    			The PKIPath is required for knowing where all certificates should be stored
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 13 15:13:31 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  3. pkg/test/framework/components/cluster/kube/factory.go

    	}
    	return cfg, nil
    }
    
    func buildClient(kubeconfig string) (istioKube.CLIClient, error) {
    	rc, err := istioKube.DefaultRestConfig(kubeconfig, "", func(config *rest.Config) {
    		config.QPS = 200
    		config.Burst = 400
    	})
    	if err != nil {
    		return nil, err
    	}
    	return istioKube.NewCLIClient(istioKube.NewClientConfigForRestConfig(rc))
    }
    
    func buildClientWithProxy(kubeconfig string, proxyURL *url.URL) (istioKube.CLIClient, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top