Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for kubeConfigPath (0.35 sec)

  1. cmd/kubeadm/app/cmd/phases/init/showjoincommand.go

    		Your Kubernetes control-plane has initialized successfully!
    
    		To start using your cluster, 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
    
    		Alternatively, if you are the root user, you can run:
    
    		  export KUBECONFIG=/etc/kubernetes/admin.conf
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 15:35:58 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/reset.go

    		SkipCRIDetect:     opts.skipCRIDetect,
    	})
    	if err != nil {
    		return nil, err
    	}
    
    	client, err := cmdutil.GetClientSet(opts.kubeconfigPath, false)
    	if err == nil {
    		klog.V(1).Infof("[reset] Loaded client set from kubeconfig file: %s", opts.kubeconfigPath)
    		initCfg, err = configutil.FetchInitConfigurationFromCluster(client, nil, "reset", false, false)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 12:26:58 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/init.go

    	if d.dryRun {
    		return d.dryRunDir
    	}
    	return d.kubeconfigDir
    }
    
    // KubeConfigPath returns the path to the kubeconfig file to use for connecting to Kubernetes
    func (d *initData) KubeConfigPath() string {
    	if d.dryRun {
    		d.kubeconfigPath = filepath.Join(d.dryRunDir, kubeadmconstants.AdminKubeConfigFileName)
    	}
    	return d.kubeconfigPath
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 03:37:05 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  4. pkg/kubelet/certificate/bootstrap/bootstrap_test.go

    	}
    
    	tests := []struct {
    		name                 string
    		kubeconfigPath       string
    		bootstrapPath        string
    		certDir              string
    		expectedCertConfig   *restclient.Config
    		expectedClientConfig *restclient.Config
    	}{
    		{
    			name:           "bootstrapPath is empty",
    			kubeconfigPath: filevalid.Name(),
    			bootstrapPath:  "",
    			certDir:        dir,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/discovery/discovery_test.go

    				Discovery: kubeadm.Discovery{
    					File: &kubeadm.FileDiscovery{
    						KubeConfigPath: "notnil",
    					},
    				},
    			},
    			expect: false,
    		},
    		{
    			name: "file Discovery with an url",
    			d: kubeadm.JoinConfiguration{
    				Discovery: kubeadm.Discovery{
    					File: &kubeadm.FileDiscovery{
    						KubeConfigPath: "https://localhost",
    					},
    				},
    			},
    			expect: false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/init_test.go

    		if r.Method != http.MethodHead {
    			w.WriteHeader(http.StatusMethodNotAllowed)
    		}
    	}))
    	defer ts.Close()
    
    	kubeconfigPath := filepath.Join(t.TempDir(), "custom.conf")
    	if err := os.WriteFile(kubeconfigPath, []byte(fmt.Sprintf(testKubeconfigDataFormat, ts.URL)), 0o600); err != nil {
    		t.Fatalf("os.WriteFile returned unexpected error: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. tools/bug-report/pkg/config/config.go

    	}
    	return false
    }
    
    // BugReportConfig controls what is captured and Include in the kube-capture tool
    // archive.
    type BugReportConfig struct {
    	// KubeConfigPath is the path to kube config file.
    	KubeConfigPath string `json:"kubeConfigPath,omitempty"`
    	// Context is the cluster Context in the kube config
    	Context string `json:"context,omitempty"`
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Nov 04 12:07:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  8. cmd/kubemark/app/hollow_node.go

    }
    
    func (c *hollowNodeConfig) createClientConfigFromFile() (*restclient.Config, error) {
    	clientConfig, err := clientcmd.LoadFromFile(c.KubeconfigPath)
    	if err != nil {
    		return nil, fmt.Errorf("error while loading kubeconfig from file %v: %v", c.KubeconfigPath, err)
    	}
    	config, err := clientcmd.NewDefaultClientConfig(*clientConfig, &clientcmd.ConfigOverrides{}).ClientConfig()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/apis/kubeadm/v1beta3/defaults.go

    func SetDefaults_FileDiscovery(obj *FileDiscovery) {
    	// Make sure file URL becomes path
    	if len(obj.KubeConfigPath) != 0 {
    		u, err := url.Parse(obj.KubeConfigPath)
    		if err == nil && u.Scheme == "file" {
    			obj.KubeConfigPath = u.Path
    		}
    	}
    }
    
    // SetDefaults_BootstrapTokens sets the defaults for the .BootstrapTokens field
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/certs.go

    type expirationFlags struct {
    	cfgPath        string
    	kubeconfigPath string
    	cfg            kubeadmapiv1.ClusterConfiguration
    }
    
    func addExpirationFlags(cmd *cobra.Command, flags *expirationFlags) {
    	options.AddConfigFlag(cmd.Flags(), &flags.cfgPath)
    	options.AddCertificateDirFlag(cmd.Flags(), &flags.cfg.CertificatesDir)
    	options.AddKubeConfigFlag(cmd.Flags(), &flags.kubeconfigPath)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top