Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for IsKubernetes (0.22 sec)

  1. cmd/update.go

    	// http://mesos.apache.org/documentation/latest/docker-containerizer/
    	// Mesos docker containerizer sets this value
    	return env.Get("MESOS_CONTAINER_NAME", "") != ""
    }
    
    // IsKubernetes returns true if minio is running in kubernetes.
    func IsKubernetes() bool {
    	// Kubernetes env used to validate if we are
    	// indeed running inside a kubernetes pod
    	// is KUBERNETES_SERVICE_HOST
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  2. cmd/update_test.go

    	defer func() {
    		globalIsCICD = sci
    	}()
    
    	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)
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. cmd/api-router.go

    		ObjectAPI: newObjectLayerFn,
    	}
    
    	// API Router
    	apiRouter := router.PathPrefix(SlashSeparator).Subrouter()
    
    	var routers []*mux.Router
    	for _, domainName := range globalDomainNames {
    		if IsKubernetes() {
    			routers = append(routers, apiRouter.MatcherFunc(func(r *http.Request, match *mux.RouteMatch) bool {
    				host, _, err := net.SplitHostPort(getHost(r))
    				if err != nil {
    					host = r.Host
    				}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  4. cmd/endpoint.go

    					}
    
    					continue
    				}
    
    				// return err if not Docker or Kubernetes
    				// We use IsDocker() to check for Docker environment
    				// We use IsKubernetes() to check for Kubernetes environment
    				isLocal, err := isLocalHost(endpoints[i].Hostname(),
    					endpoints[i].Port(),
    					globalMinioPort,
    				)
    				if err != nil && !orchestrated {
    					return err
    				}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  5. cmd/admin-handlers.go

    	}
    
    	partialWrite := func(oinfo madmin.HealthInfo) {
    		select {
    		case healthInfoCh <- oinfo:
    		case <-healthCtx.Done():
    		}
    	}
    
    	getAndWritePlatformInfo := func() {
    		if IsKubernetes() {
    			healthInfo.Sys.KubernetesInfo = getKubernetesInfo(healthCtx)
    			partialWrite(healthInfo)
    		}
    	}
    
    	getAndWriteCPUs := func() {
    		if query.Get("syscpu") == "true" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  6. cmd/common-main.go

    )
    
    // serverDebugLog will enable debug printing
    var (
    	serverDebugLog     = env.Get("_MINIO_SERVER_DEBUG", config.EnableOff) == config.EnableOn
    	currentReleaseTime time.Time
    	orchestrated       = IsKubernetes() || IsDocker()
    )
    
    func init() {
    	if runtime.GOOS == "windows" {
    		if mousetrap.StartedByExplorer() {
    			fmt.Printf("Don't double-click %s\n", os.Args[0])
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 35.5K bytes
    - Viewed (2)
  7. cmd/server_test.go

    	// Content for the object to be uploaded.
    	buffer := bytes.NewReader([]byte("hello world"))
    	// make long object name.
    	longObjName := fmt.Sprintf("%0255d/%0255d/%0255d", 1, 1, 1)
    	if IsDocker() || IsKubernetes() {
    		longObjName = fmt.Sprintf("%0242d/%0242d/%0242d", 1, 1, 1)
    	}
    	// create new HTTP request to insert the object.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top