Skip to content

Unauthorized kubectl #1

@youvegotmoxie

Description

@youvegotmoxie

kops export kubecfg now requires additional arguments

Error: Validation failed: unexpected error during validation: error listing nodes: Unauthorized
Error: The process '/home/runner/work/kops/kops/bin/kops' failed with exit code 1

From the kops export kubecfg command help:

Examples:
  # export a kubeconfig file with the cluster admin user (make sure you keep this user safe!)
  kops export kubeconfig k8s-cluster.example.com --admin

  # export using a user already existing in the kubeconfig file
  kops export kubeconfig k8s-cluster.example.com --user my-oidc-user

  # export using the internal DNS name, bypassing the cloud load balancer
  kops export kubeconfig k8s-cluster.example.com --internal

It would be helpful to provide an option to specify how to export the kubeconfig from kops or default to using the --admin flag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions