Skip to content

v1.1.7

Compare
Choose a tag to compare
@zeroc0d3 zeroc0d3 released this 26 Mar 03:08
· 1333 commits to master since this release

Kubernetes Change Context (k8s-context)

Customize Kubernetes Change Context (KUBECONFIG)

goreport all contributors tags docker pulls download all view clone issues pull requests forks stars license


Available Tags

Alpine

Image name Size
devopscorner/k8s-context:latest docker image size default-aws-cli latest-aws-cli
devopscorner/k8s-context:1.1.7 docker image size latest-1.1.7
devopscorner/k8s-context:alpine docker image size
devopscorner/k8s-context:alpine-latest docker image size
devopscorner/k8s-context:alpine-3.16 docker image size
devopscorner/k8s-context:go1.19-alpine3.16 docker image size
devopscorner/k8s-context:go1.19.5-alpine3.16 docker image size
devopscorner/k8s-context:alpine-3.17 docker image size
devopscorner/k8s-context:go1.19-alpine3.17 docker image size
devopscorner/k8s-context:go1.19.5-alpine3.17 docker image size

Alpine (Depreciated)

Image name Size
devopscorner/k8s-context:1.1.6 docker image size
devopscorner/k8s-context:1.1.5 docker image size
devopscorner/k8s-context:1.1.4 docker image size
devopscorner/k8s-context:1.1.3 docker image size
devopscorner/k8s-context:alpine-3.15 docker image size
devopscorner/k8s-context:go1.19-alpine3.15 docker image size
devopscorner/k8s-context:go1.19.3-alpine3.15 docker image size

version 1.1.7

  • Added flag "-n" to make shortcut from "--namespace"
  • Added column "NODE" from get pods
  • Added features show, describe / show kubernetes resources (po, logs, port, node)
    • Pods
      ./k8s-context show po [pods_name] -n [namespace]
      ./k8s-context show po [pods_name] --namespace [namespace]
      
    • Logs
      ./k8s-context show logs [pods_name] -n [namespace]
      ./k8s-context show logs [pods_name] --namespace [namespace]
      
    • Port Forward
      ./k8s-context show port [pods_name] -n [namespace]
      ./k8s-context show port [pods_name] --namespace [namespace]
      
    • Node
      ./k8s-context show node [node_name]
      

version 1.1.6

  • Circular load --> switch --> change context
  • Change feature load kubeconfig file --> will compare existing context to $HOME/.kube/config,
    if action from load kubeconfig failed, need to merge into $HOME/.kube/config first.
  • Feature get will references from $HOME/.kube/config,
    if get refer to spesific kubeconfig using --kubeconfig,
    get will use context by defining in --kubeconfig flags