bsnux / k8listns-go

Accessing to Kubernetes cluster using Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

k8listns-go

Simple example for using Go for accessing to Kubernetes.

This program displays namespaces names for default configured context.

We assuming you have a valid ~/.kube/config file and access to given Kubernentes cluster.

Compiling and running

Compiling for MacOS:

$ make macos

Compiling for Linx:

$ make linux

Usage

$ ./bin/listns

On linux:

$ ./bin/listns-linux

About

Accessing to Kubernetes cluster using Go


Languages

Language:Makefile 53.5%Language:Go 46.5%