Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 52 for KubeConfigPath (0.18 sec)

  1. cmd/kubeadm/app/cmd/options/constant.go

    	// KubeconfigDir flag sets the path where to save the kubeconfig file.
    	KubeconfigDir = "kubeconfig-dir"
    
    	// KubeconfigPath flag sets the kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations are searched for an existing KubeConfig file.
    	KubeconfigPath = "kubeconfig"
    
    	// KubernetesVersion flag sets the Kubernetes version for the control plane.
    	KubernetesVersion = "kubernetes-version"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/phases/upgrade/node/controlplane.go

    	phase := workflow.Phase{
    		Name:  "control-plane",
    		Short: "Upgrade the control plane instance deployed on this node, if any",
    		Run:   runControlPlane(),
    		InheritFlags: []string{
    			options.DryRun,
    			options.KubeconfigPath,
    			options.CertificateRenewal,
    			options.EtcdUpgrade,
    			options.Patches,
    		},
    	}
    	return phase
    }
    
    func runControlPlane() func(c workflow.RunData) error {
    	return func(c workflow.RunData) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    		return errors.Errorf("%s: spec was nil", errInvalid)
    	}
    	kubeConfigPath := filepath.Join(kubeConfigDir, name)
    	if _, err := os.Stat(kubeConfigPath); err == nil {
    		return errors.Errorf("%s: kube config: %s", errExist, kubeConfigPath)
    	} else if !os.IsNotExist(err) {
    		return errors.Wrapf(err, "unexpected error while checking if file exists: %s", kubeConfigPath)
    	}
    	if pkiutil.CSROrKeyExist(kubeConfigDir, name) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/phases/init/data_test.go

    func (t *testInitData) CertificateDir() string                               { return "" }
    func (t *testInitData) KubeConfigDir() string                                { return "" }
    func (t *testInitData) KubeConfigPath() string                               { return "" }
    func (t *testInitData) ManifestDir() string                                  { return "" }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 06 10:43:20 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/join.go

    		* The Kubernetes control plane instances scaled up.
    		{{.etcdMessage}}
    
    		To start administering your cluster from this node, you need to run the following as a regular user:
    
    			mkdir -p $HOME/.kube
    			sudo cp -i {{.KubeConfigPath}} $HOME/.kube/config
    			sudo chown $(id -u):$(id -g) $HOME/.kube/config
    
    		Run 'kubectl get nodes' to see this node join the cluster.
    
    		`)))
    
    	joinLongDescription = dedent.Dedent(`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 15:33:38 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/upgrade/common.go

    		if !ok {
    			return nil, nil, nil, nil, cmdutil.TypeMismatchErr("dryRun", "bool")
    		}
    	}
    
    	client, err := getClient(flags.kubeConfigPath, *isDryRun)
    	if err != nil {
    		return nil, nil, nil, nil, errors.Wrapf(err, "couldn't create a Kubernetes client from file %q", flags.kubeConfigPath)
    	}
    
    	ignorePreflightErrorsSet, err := validation.ValidateIgnorePreflightErrors(flags.ignorePreflightErrors, ignoreErrCfg)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. tools/bug-report/pkg/bugreport/bugreport.go

    		clusterCtxStr, err = content.GetClusterContext(runner, config.KubeConfigPath)
    		if err != nil {
    			return err
    		}
    	} else {
    		clusterCtxStr = config.Context
    	}
    
    	common.LogAndPrintf("\nTarget cluster context: %s\n", clusterCtxStr)
    	common.LogAndPrintf("Running with the following config: \n\n%s\n\n", config)
    
    	restConfig, clientset, err := kubeclient.New(config.KubeConfigPath, config.Context)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 20:57:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/phases/init/addons.go

    }
    
    func getAddonPhaseFlags(name string) []string {
    	flags := []string{
    		options.CfgPath,
    		options.KubeconfigPath,
    		options.KubernetesVersion,
    		options.ImageRepository,
    		options.DryRun,
    	}
    	if name == "all" || name == "kube-proxy" {
    		flags = append(flags,
    			options.APIServerAdvertiseAddress,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/init/uploadconfig.go

    				InheritFlags: getUploadConfigPhaseFlags(),
    			},
    		},
    	}
    }
    
    func getUploadConfigPhaseFlags() []string {
    	return []string{
    		options.CfgPath,
    		options.NodeCRISocket,
    		options.KubeconfigPath,
    		options.DryRun,
    	}
    }
    
    // runUploadKubeadmConfig uploads the kubeadm configuration to a ConfigMap
    func runUploadKubeadmConfig(c workflow.RunData) error {
    	cfg, client, err := getUploadConfigData(c)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 02 12:34:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/config/cluster_test.go

    			}
    
    			kubeconfigPath := filepath.Join(tmpdir, kubeadmconstants.KubeletKubeConfigFileName)
    			err := os.WriteFile(kubeconfigPath, rt.kubeconfigContent, 0644)
    			if err != nil {
    				t.Errorf("Couldn't create kubeconfig: %v", err)
    				return
    			}
    
    			name, err := getNodeNameFromKubeletConfig(kubeconfigPath)
    			if rt.expectedError != (err != nil) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
Back to top