Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for KUBERNETES_SERVICE_HOST (0.23 sec)

  1. cmd/update_test.go

    	}
    }
    
    // Tests if the environment we are running is in kubernetes.
    func TestIsKubernetes(t *testing.T) {
    	t.Setenv("KUBERNETES_SERVICE_HOST", "10.11.148.5")
    	kubernetes := IsKubernetes()
    	if !kubernetes {
    		t.Fatalf("Expected %t, got %t", true, kubernetes)
    	}
    	os.Unsetenv("KUBERNETES_SERVICE_HOST")
    
    	kubernetes = IsKubernetes()
    	if kubernetes {
    		t.Fatalf("Expected %t, got %t", false, kubernetes)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. cni/pkg/install/kubeconfig.go

    	// Kubeconfig with confidential data redacted.
    	Redacted string
    }
    
    func createKubeConfig(cfg *config.InstallConfig) (kubeconfig, error) {
    	if len(cfg.K8sServiceHost) == 0 {
    		return kubeconfig{}, fmt.Errorf("KUBERNETES_SERVICE_HOST not set. Is this not running within a pod?")
    	}
    
    	if len(cfg.K8sServicePort) == 0 {
    		return kubeconfig{}, fmt.Errorf("KUBERNETES_SERVICE_PORT not set. Is this not running within a pod?")
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. cni/pkg/config/config.go

    	SkipTLSVerify bool
    
    	// Comma-separated list of K8S namespaces that CNI should ignore
    	ExcludeNamespaces string
    
    	// KUBERNETES_SERVICE_PROTOCOL
    	K8sServiceProtocol string
    	// KUBERNETES_SERVICE_HOST
    	K8sServiceHost string
    	// KUBERNETES_SERVICE_PORT
    	K8sServicePort string
    	// KUBERNETES_NODE_NAME
    	K8sNodeName string
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 16 15:33:47 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. cmd/update.go

    func IsKubernetes() bool {
    	// Kubernetes env used to validate if we are
    	// indeed running inside a kubernetes pod
    	// is KUBERNETES_SERVICE_HOST
    	// https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet_pods.go#L541
    	return env.Get("KUBERNETES_SERVICE_HOST", "") != ""
    }
    
    // IsBOSH returns true if minio is deployed from a bosh package
    func IsBOSH() bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  5. cni/pkg/cmd/root.go

    		SkipTLSVerify:         viper.GetBool(constants.SkipTLSVerify),
    		K8sServiceProtocol:    os.Getenv("KUBERNETES_SERVICE_PROTOCOL"),
    		K8sServiceHost:        os.Getenv("KUBERNETES_SERVICE_HOST"),
    		K8sServicePort:        os.Getenv("KUBERNETES_SERVICE_PORT"),
    		K8sNodeName:           os.Getenv("KUBERNETES_NODE_NAME"),
    		K8sServiceAccountPath: constants.ServiceAccountPath,
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 16 15:33:47 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top