Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 248 for KubeConfig (0.35 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/coreapi.go

    		kubeconfig, err = loader.ClientConfig()
    		if err != nil {
    			return fmt.Errorf("failed to load kubeconfig at %q: %v", o.CoreAPIKubeconfigPath, err)
    		}
    	} else {
    		kubeconfig, err = rest.InClusterConfig()
    		if err != nil {
    			return err
    		}
    	}
    	if feature.DefaultFeatureGate.Enabled(features.APIServerTracing) {
    		kubeconfig.Wrap(tracing.WrapperFor(config.TracerProvider))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 16:55:02 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. cni/test/testdata/expected/10-calico.conflist-istioconfig

      "name": "k8s-pod-network",
      "plugins": [
        {
          "etcd_endpoints": "http://10.110.0.136:6666",
          "ipam": {
            "type": "calico-ipam"
          },
          "kubernetes": {
            "kubeconfig": "/etc/cni/net.d/calico-kubeconfig"
          },
          "mtu": 1500,
          "plugin_log_level": "info",
          "policy": {
            "type": "k8s"
          },
          "type": "calico"
        },
        {
          "capabilities": {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 935 bytes
    - Viewed (0)
  3. cmd/kube-scheduler/app/server_test.go

    			flags: []string{
    				"--config", simplifiedPluginConfigFilev1,
    				"--kubeconfig", configKubeconfig,
    			},
    			wantPlugins: map[string]*config.Plugins{
    				"simplified-scheduler": defaults.ExpandedPluginsV1,
    			},
    		},
    		{
    			name: "default config",
    			flags: []string{
    				"--kubeconfig", configKubeconfig,
    			},
    			wantPlugins: map[string]*config.Plugins{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/webhook/authentication.go

    	// star (default) match
    	if authConfig, ok := c.kubeconfig.AuthInfos["*"]; ok {
    		return restConfigFromKubeconfig(authConfig)
    	}
    
    	// use the current context from the kubeconfig if possible
    	if len(c.kubeconfig.CurrentContext) > 0 {
    		if currContext, ok := c.kubeconfig.Contexts[c.kubeconfig.CurrentContext]; ok {
    			if len(currContext.AuthInfo) > 0 {
    				if currAuth, ok := c.kubeconfig.AuthInfos[currContext.AuthInfo]; ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  5. cni/pkg/install/kubeconfig_test.go

    				}
    				// Successful test case expecting failure
    				return
    			} else if c.expectedFailure {
    				t.Fatalf("expected failure")
    			}
    
    			goldenFilepath := "testdata/kubeconfig-tls"
    			if c.skipTLSVerify {
    				goldenFilepath = "testdata/kubeconfig-skip-tls"
    			}
    
    			testutils.CompareContent(t, []byte(result.Full), goldenFilepath)
    		})
    	}
    }
    
    func TestReplaceInvalidKubeconfigFile(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/discovery/token/token.go

    	if err != nil {
    		return nil, errors.Wrapf(err, "couldn't parse the kubeconfig file in the %s ConfigMap", bootstrapapi.ConfigMapClusterInfo)
    	}
    
    	// The ConfigMap should contain a single cluster
    	if len(insecureConfig.Clusters) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. cluster/gce/manifests/kube-proxy.manifest

        - mountPath: /usr/share/ca-certificates
          name: usr-ca-certs
          readOnly: true
        - mountPath: /var/log
          name: varlog
          readOnly: false
        - mountPath: /var/lib/kube-proxy/kubeconfig
          name: kubeconfig
          readOnly: false
        - mountPath: /run/xtables.lock
          name: iptableslock
          readOnly: false
        - mountPath: /lib/modules
          name: lib-modules
          readOnly: true
      volumes:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 11:08:30 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. 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)
  9. cmd/kubeadm/app/cmd/phases/join/controlplaneprepare.go

    	}
    
    	cfg, err := data.InitCfg()
    	if err != nil {
    		return err
    	}
    
    	fmt.Println("[kubeconfig] Generating kubeconfig files")
    	fmt.Printf("[kubeconfig] Using kubeconfig folder %q\n", data.KubeConfigDir())
    
    	// Generate kubeconfig files for controller manager, scheduler and for the admin/kubeadm itself
    	// NB. The kubeconfig file for kubelet will be generated by the TLS bootstrap process in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:46:34 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. 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)
Back to top