|
|
@ -26,12 +26,14 @@ func init() {
|
|
|
|
|
|
|
|
|
|
|
|
var configureKubeconfigCmd = &ffcli.Command{
|
|
|
|
var configureKubeconfigCmd = &ffcli.Command{
|
|
|
|
Name: "kubeconfig",
|
|
|
|
Name: "kubeconfig",
|
|
|
|
ShortHelp: "Configure kubeconfig to use Tailscale",
|
|
|
|
ShortHelp: "[ALPHA] Connect to a Kubernetes cluster using a Tailscale Auth Proxy",
|
|
|
|
ShortUsage: "kubeconfig <hostname-or-fqdn>",
|
|
|
|
ShortUsage: "kubeconfig <hostname-or-fqdn>",
|
|
|
|
LongHelp: strings.TrimSpace(`
|
|
|
|
LongHelp: strings.TrimSpace(`
|
|
|
|
Run this command to configure your kubeconfig to use Tailscale for authentication to a Kubernetes cluster.
|
|
|
|
Run this command to configure kubectl to connect to a Kubernetes cluster over Tailscale.
|
|
|
|
|
|
|
|
|
|
|
|
The hostname argument should be set to the Tailscale hostname of the peer running as an auth proxy in the cluster.
|
|
|
|
The hostname argument should be set to the Tailscale hostname of the peer running as an auth proxy in the cluster.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See: https://tailscale.com/s/k8s-auth-proxy
|
|
|
|
`),
|
|
|
|
`),
|
|
|
|
FlagSet: (func() *flag.FlagSet {
|
|
|
|
FlagSet: (func() *flag.FlagSet {
|
|
|
|
fs := newFlagSet("kubeconfig")
|
|
|
|
fs := newFlagSet("kubeconfig")
|
|
|
|