mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
Add smallest image possible to use for e2e-testing
This commit is contained in:
18
build/hello-kubernetes/hello.go
Normal file
18
build/hello-kubernetes/hello.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func helloFromKubernetes(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintln(w, "Hello World! -- Kubernetes")
|
||||
}
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/", helloFromKubernetes)
|
||||
err := http.ListenAndServe(":8080", nil)
|
||||
if err != nil {
|
||||
panic("ListenAndServe: " + err.Error())
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user