mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-03 18:53:13 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			194 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			194 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package k8stest
 | 
						|
 | 
						|
import (
 | 
						|
	"net/http"
 | 
						|
)
 | 
						|
 | 
						|
// checkKubernetesRunning performs a basic
 | 
						|
func CheckKubernetesRunning() bool {
 | 
						|
	_, err := http.Get("http://localhost:8080/api/v1")
 | 
						|
	return err == nil
 | 
						|
}
 |