Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for CertificatesDir (0.34 sec)

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

    				ControlPlaneEndpoint: "api.k8s.io",
    				CertificatesDir:      pkidir,
    			},
    			NodeRegistration: kubeadmapi.NodeRegistrationOptions{Name: "valid-node-name"},
    		},
    		{
    			LocalAPIEndpoint: kubeadmapi.APIEndpoint{AdvertiseAddress: "1.2.3.4", BindPort: 1234},
    			ClusterConfiguration: kubeadmapi.ClusterConfiguration{
    				ControlPlaneEndpoint: "api.k8s.io:4321",
    				CertificatesDir:      pkidir,
    			},
    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/cmd/init.go

    		`Specify a stable IP address or DNS name for the control plane.`,
    	)
    
    	options.AddKubernetesVersionFlag(flagSet, &cfg.KubernetesVersion)
    
    	flagSet.StringVar(
    		&cfg.CertificatesDir, options.CertificatesDir, cfg.CertificatesDir,
    		`The path where to save and store the certificates.`,
    	)
    	flagSet.StringSliceVar(
    		&cfg.APIServer.CertSANs, options.APIServerCertSANs, cfg.APIServer.CertSANs,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 03:37:05 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/upgrade/staticpods_test.go

    	tlsInfo := transport.TLSInfo{
    		CertFile:      filepath.Join(c.CertificatesDir, constants.EtcdCACertName),
    		KeyFile:       filepath.Join(c.CertificatesDir, constants.EtcdHealthcheckClientCertName),
    		TrustedCAFile: filepath.Join(c.CertificatesDir, constants.EtcdHealthcheckClientKeyName),
    	}
    	_, err := tlsInfo.ClientConfig()
    	return err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/certs/certs_test.go

    		t.Run("", func(t *testing.T) {
    			tmpdir := testutil.SetupTempDir(t)
    			os.MkdirAll(tmpdir+"/etcd", os.ModePerm)
    			defer os.RemoveAll(tmpdir)
    
    			cfg := &kubeadmapi.ClusterConfiguration{
    				CertificatesDir: tmpdir,
    			}
    
    			// created expected keys
    			certstestutil.WritePKIFiles(t, tmpdir, test.files)
    
    			// executes create func
    			ret, err := SharedCertificateExists(cfg)
    			switch {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/certs/renewal/manager.go

    	for ca, certs := range certTree {
    		for _, cert := range certs {
    			// create a ReadWriter for certificates stored in the K8s local PKI
    			pkiReadWriter := newPKICertificateReadWriter(rm.cfg.CertificatesDir, cert.BaseName)
    			certConfigMutators := loadCertConfigMutators(cert.BaseName)
    
    			// adds the certificateRenewHandler.
    			// PKI certificates are indexed by name, that is a well know constant defined
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    func CreateJoinControlPlaneKubeConfigFiles(outDir string, cfg *kubeadmapi.InitConfiguration) error {
    	var externalCA bool
    	caKeyPath := filepath.Join(cfg.CertificatesDir, kubeadmconstants.CAKeyName)
    	if _, err := os.Stat(caKeyPath); os.IsNotExist(err) {
    		externalCA = true
    	}
    
    	files := []string{
    		kubeadmconstants.AdminKubeConfigFileName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/copycerts/copycerts.go

    	if err != nil {
    		return nil, err
    	}
    	return cryptoutil.EncryptBytes(cert, key)
    }
    
    func certsToTransfer(cfg *kubeadmapi.InitConfiguration) map[string]string {
    	certsDir := cfg.CertificatesDir
    	certs := map[string]string{
    		kubeadmconstants.CACertName:                   filepath.Join(certsDir, kubeadmconstants.CACertName),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:15:30 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/phases/controlplane/volumes_test.go

    			cfg: &kubeadmapi.ClusterConfiguration{
    				CertificatesDir: testCertsDir,
    				Etcd:            kubeadmapi.Etcd{},
    			},
    			vol:      volMap,
    			volMount: volMountMap,
    		},
    		{
    			name: "Should ignore files in /etc/ssl/certs and in CertificatesDir",
    			cfg: &kubeadmapi.ClusterConfiguration{
    				CertificatesDir: testCertsDir,
    				Etcd: kubeadmapi.Etcd{
    					External: &kubeadmapi.ExternalEtcd{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:33:18 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/etcd/etcd.go

    	// Creates an etcd client
    	etcdClient, err := New(
    		endpoints,
    		filepath.Join(certificatesDir, constants.EtcdCACertName),
    		filepath.Join(certificatesDir, constants.EtcdHealthcheckClientCertName),
    		filepath.Join(certificatesDir, constants.EtcdHealthcheckClientKeyName),
    	)
    	if err != nil {
    		return nil, errors.Wrapf(err, "error creating etcd client for %v endpoints", endpoints)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/apis/kubeadm/v1beta4/types.go

    	// Proxy defines the options for the proxy add-on installed in the cluster.
    	Proxy Proxy `json:"proxy,omitempty"`
    
    	// CertificatesDir specifies where to store or look for all required certificates.
    	// +optional
    	CertificatesDir string `json:"certificatesDir,omitempty"`
    
    	// ImageRepository sets the container registry to pull images from.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top