package
0.0.0-20240804091316-fff937d65c50
Repository: https://github.com/cr7258/kubernetes-guide.git
Documentation: pkg.go.dev
# README
compile
go build -o ~/.krew/bin/kubectl-pods main.go
use kubectl plugin
kubectl pods list
table format
https://github.com/olekukonko/tablewriter
go get github.com/olekukonko/tablewriter
table rendering effect
> kubectl pods list
+---------------------------+-----------+----------------+---------+
| NAME | NAMESPACE | IP | STATUS |
+---------------------------+-----------+----------------+---------+
| k8splay1-6784b6cb56-r66hd | default | 10.244.236.188 | Running |
| nettool | default | 10.244.236.177 | Running |
| nettool2 | default | 10.244.73.82 | Running |
+---------------------------+-----------+----------------+---------+
interactive
enter interactive mode
kubectl pods prompt
# Packages
No description provided by the author