Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for kubeconfig (0.24 sec)

  1. common/scripts/kind_provisioner.sh

        C1_POD_CIDR=$(KUBECONFIG="${C1_KUBECONFIG}" kubectl get node -ojsonpath='{.items[0].spec.podCIDR}')
        C2_POD_CIDR=$(KUBECONFIG="${C2_KUBECONFIG}" kubectl get node -ojsonpath='{.items[0].spec.podCIDR}')
        C1_SVC_CIDR=$(KUBECONFIG="${C1_KUBECONFIG}" kubectl cluster-info dump | sed -n 's/^.*--service-cluster-ip-range=\([^"]*\).*$/\1/p' | head -n 1)
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 08 19:12:55 GMT 2024
    - 17.3K bytes
    - Viewed (1)
  2. istioctl/pkg/multicluster/remote_secret.go

      istioctl --kubeconfig=c0.yaml create-remote-secret --name c0 \
        | kubectl --kubeconfig=c1.yaml apply -f -
    
      # Delete a secret that was previously installed in c1
      istioctl --kubeconfig=c0.yaml create-remote-secret --name c0 \
        | kubectl --kubeconfig=c1.yaml delete -f -
    
      # Create a secret access a remote cluster with an auth plugin
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  3. cni/pkg/install/install_test.go

    			// Create existing binary files
    			if err := os.WriteFile(filepath.Join(cniBinDir, "istio-cni"), []byte{1, 2, 3}, 0o755); err != nil {
    				t.Fatal(err)
    			}
    
    			// Create kubeconfig
    			kubeConfigFilePath := filepath.Join(cniNetDir, "kubeconfig")
    			if err := os.WriteFile(kubeConfigFilePath, []byte{1, 2, 3}, 0o755); err != nil {
    				t.Fatal(err)
    			}
    
    			cfg := &config.InstallConfig{
    				MountedCNINetDir: cniNetDir,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  4. cni/pkg/install/install.go

    	if err != nil {
    		cniInstalls.With(resultLabel.Value(resultCopyBinariesFailure)).Increment()
    		return copiedFiles, fmt.Errorf("copy binaries: %v", err)
    	}
    
    	// Install kubeconfig (if needed) - we write/update this in the shared node CNI netdir,
    	// which may be watched by other CNIs, and so we don't want to trigger writes to this file
    	// unless it's missing or the contents are not what we expect.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  5. cni/pkg/cmd/root.go

    	registerStringParameter(constants.KubeconfigFilename, "ZZZ-istio-cni-kubeconfig",
    		"Name of the kubeconfig file which CNI plugin will use when interacting with API server")
    	registerIntegerParameter(constants.KubeconfigMode, constants.DefaultKubeconfigMode, "File mode of the kubeconfig file")
    	registerStringParameter(constants.KubeCAFile, "", "CA file for kubeconfig. Defaults to the same as install-cni pod")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. istioctl/pkg/multicluster/remote_secret_test.go

    			obj = o
    			break
    		}
    	}
    	if obj == nil {
    		t.Fatalf("expected %v/%v", name, kind)
    	}
    }
    
    func TestCreateRemoteKubeconfig(t *testing.T) {
    	fakeClusterName := "fake-clusterName-0"
    	kubeconfig := strings.ReplaceAll(`apiVersion: v1
    clusters:
    - cluster:
        certificate-authority-data: Y2FEYXRh
        server: https://1.2.3.4
      name: {cluster}
    contexts:
    - context:
        cluster: {cluster}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  7. cni/test/install_cni.go

    	cniNetworkConfigName = "CNI_NETWORK_CONFIG"
    	cniNetworkConfig     = `{
      "cniVersion": "0.3.1",
      "type": "istio-cni",
      "log_level": "info",
      "kubernetes": {
          "kubeconfig": "__KUBECONFIG_FILEPATH__",
          "cni_bin_dir": "/opt/cni/bin",
          "exclude_namespaces": [ "istio-system" ]
      }
    }
    `
    )
    
    func getEnv(key, fallback string) string {
    	if value, ok := os.LookupEnv(key); ok {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  8. cni/pkg/install/cniconfig_test.go

    		})
    	}
    }
    
    const (
    	// For testing purposes, set kubeconfigFilename equivalent to the path in the test files and use __KUBECONFIG_FILENAME__
    	// CreateCNIConfigFile joins the MountedCNINetDir and KubeconfigFilename if __KUBECONFIG_FILEPATH__ was used
    	kubeconfigFilename   = "/path/to/kubeconfig"
    	cniNetworkConfigFile = "testdata/istio-cni.conf.template"
    	cniNetworkConfig     = `{
      "cniVersion": "0.3.1",
      "name": "istio-cni",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  9. cni/pkg/install/cniconfig.go

    	cniConfigStr = strings.ReplaceAll(cniConfigStr, "__CNI_EVENT_ADDRESS__", vars.cniEventAddress)
    	cniConfigStr = strings.ReplaceAll(cniConfigStr, "__KUBECONFIG_FILENAME__", vars.kubeconfigFilename)
    	cniConfigStr = strings.ReplaceAll(cniConfigStr, "__KUBECONFIG_FILEPATH__", filepath.Join(vars.cniNetDir, vars.kubeconfigFilename))
    	cniConfigStr = strings.ReplaceAll(cniConfigStr, "__KUBERNETES_SERVICE_HOST__", vars.k8sServiceHost)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  10. cni/pkg/plugin/plugin.go

    	podRetrievalInterval   = 1 * time.Second
    )
    
    const (
    	ISTIOINIT  = "istio-init"
    	ISTIOPROXY = "istio-proxy"
    )
    
    // Kubernetes a K8s specific struct to hold config
    type Kubernetes struct {
    	Kubeconfig        string   `json:"kubeconfig"`
    	ExcludeNamespaces []string `json:"exclude_namespaces"`
    }
    
    // Config is whatever you expect your configuration json to be. This is whatever
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top