...

Package inclusterclient

import "k8s.io/kubernetes/test/images/agnhost/inclusterclient"
Overview
Index

Overview ▾

Index ▾

Package files

main.go

Variables

CmdInClusterClient is used by agnhost Cobra.

var CmdInClusterClient = &cobra.Command{
    Use:   "inclusterclient",
    Short: "Periodically poll the Kubernetes \"/healthz\" endpoint",
    Long: `Periodically polls the Kubernetes "/healthz" endpoint using the in-cluster config. Because of this, this subcommand is meant to be run inside of a Kubernetes pod.

This subcommand can also be used to validate token rotation.`,
    Args: cobra.MaximumNArgs(0),
    Run:  main,
}