123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package main
- import (
- "math/rand"
- "os"
- "time"
- "k8s.io/component-base/logs"
- _ "k8s.io/component-base/metrics/prometheus/restclient"
- _ "k8s.io/component-base/metrics/prometheus/version"
- "k8s.io/kubernetes/cmd/kubelet/app"
- )
- func main() {
- rand.Seed(time.Now().UnixNano())
- command := app.NewKubeletCommand()
- logs.InitLogs()
- defer logs.FlushLogs()
- if err := command.Execute(); err != nil {
- os.Exit(1)
- }
- }
|