fernandoocampo / goku

kubectl trainer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Report Card CI GitHub release GoDoc

goku

kubectl trainer inspired by the kubectl cheat sheet site. The idea is to wrap kubectl commands, trying to abbreviate them, displaying the original command using kubectl when the user calls goku.

How to test

  • to run unit tests run the following command
go test ./... -integration
  • to run integration tests run the following command
go test -race ./...

Known issues

  1. if you got failed to create a client with given kube config: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1" it means that you have a kube config using a deprecated version api. The client.authentication.k8s.io/v1alpha1 has been deprecated and removed from Kubernetes 1.24.

    • Update the $HOME/.kube/config and change these sections
    apiVersion: client.authentication.k8s.io/v1alpha1

    to

    apiVersion: client.authentication.k8s.io/v1beta1
    • Update the AWS CLI to the latest version and regenerate the kubeconfig with:
    aws eks update-kubeconfig --name ${EKS_CLUSTER_NAME} --region ${REGION}

About

kubectl trainer


Languages

Language:Go 98.8%Language:Makefile 1.2%