All Projects → superbrothers → kubectl-view-serviceaccount-kubeconfig-plugin

superbrothers / kubectl-view-serviceaccount-kubeconfig-plugin

Licence: MIT License
A kubectl plugin that show a kubeconfig to access the apiserver with a specified serviceaccount.

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to kubectl-view-serviceaccount-kubeconfig-plugin

kubectl-ctx
Simple kubectl plugin to display/switch contexts
Stars: ✭ 36 (+9.09%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-images
🕸 Show container images used in the cluster.
Stars: ✭ 153 (+363.64%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-ns
Simple kubectl plugin to display/switch namespaces
Stars: ✭ 20 (-39.39%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-evict-pod
This plugin evicts the given pod and is useful for testing pod disruption budget rules
Stars: ✭ 51 (+54.55%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-external-forward
kubectl plugin to connect to external host via Envoy Proxy in Kubernetes cluster
Stars: ✭ 37 (+12.12%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-tmux-logs
A kubectl plugin to display container logs within separate tmux panes
Stars: ✭ 19 (-42.42%)
Mutual labels:  kubectl, kubectl-plugins
kubectlsafe
Safe operations in kubectl with plugin kubectlsafe
Stars: ✭ 36 (+9.09%)
Mutual labels:  kubectl, kubectl-plugins
Krew
📦 Find and install kubectl plugins
Stars: ✭ 4,354 (+13093.94%)
Mutual labels:  kubectl, kubectl-plugins
kube-lineage
A CLI tool to display all dependencies or dependents of an object in a Kubernetes cluster.
Stars: ✭ 238 (+621.21%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-secretdata
A kubectl plugin for viewing decoded Secret data with search flags.
Stars: ✭ 37 (+12.12%)
Mutual labels:  kubectl, kubectl-plugins
Kubectl Debug
Debug your pod by a new container with every troubleshooting tools pre-installed
Stars: ✭ 2,091 (+6236.36%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-iexec
Kubectl plugin to interactively exec into a pod
Stars: ✭ 102 (+209.09%)
Mutual labels:  kubectl, kubectl-plugins
Kubectl Tree
kubectl plugin to browse Kubernetes object hierarchies as a tree 🎄 (star the repo if you are using)
Stars: ✭ 1,962 (+5845.45%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-plugin-ssh-jump
A kubectl plugin to access nodes or remote services using a SSH jump Pod
Stars: ✭ 117 (+254.55%)
Mutual labels:  kubectl, kubectl-plugins
Kubectx
Faster way to switch between clusters and namespaces in kubectl
Stars: ✭ 11,922 (+36027.27%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-whoami
This plugin gets the subject name using the effective kubeconfig
Stars: ✭ 74 (+124.24%)
Mutual labels:  kubectl, kubectl-plugins
KuiClientTemplate
Use this template to make your own custom graphical terminal, via the Kui Grahpical CLI Framework
Stars: ✭ 26 (-21.21%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-gs
kubectl plugin helping with custom resources by Giant Swarm
Stars: ✭ 36 (+9.09%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-janitor
List Kubernetes objects in a problematic state
Stars: ✭ 48 (+45.45%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-skew
a simple kubectl plugin to make the "skew" visible
Stars: ✭ 18 (-45.45%)
Mutual labels:  kubectl, kubectl-plugins

kubectl plugin view-serviceaccount-kubeconfig SERVICEACCOUNT

This is a kubectl plugin that show a kubeconfig to access the apiserver with a specified serviceaccount.

Usage:
  kubectl view-serviceaccount-kubeconfig SERVICEACCOUNT [options] [flags]

Examples:
  # Show a kubeconfig setting of serviceaccount/default
  kubectl view-serviceaccount-kubeconfig default
  
  # Show a kubeconfig setting of serviceaccount/bot in namespace/kube-system
  kubectl view-serviceaccount-kubeconfig bot -n kube-system

  # Show a kubeconfig setting of serviceaccount/default in JSON format
  kubectl view-serviceaccount-kubeconfig default -o json

Try the plugin

# create a serviceaccount/bot in namepace/default
$ kubectl create serviceaccount bot

# save a kubeconfig setting of serviceaccount/bot
$ kubectl view-serviceaccount-kubeconfig bot > ./kubeconfig

# list pods as serviceaccount/bot from outside of kubernetes cluster
$ kubectl get pods --kubeconfig=./kubeconfig

Install the plugin

  1. Install krew that is a plugin manager for kubectl.

  2. Run:

     kubectl krew install view-serviceaccount-kubeconfig
    
  3. Try it out:

     kubectl view-serviceaccount-kubeconfig default
    

License

This software is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].