Skip to content

bryant-rh/k8sutil

Repository files navigation

k8sutil

Go Reference

The repository provides some toolkits package to make it easier to call client-go to operate Kubernetes cluster.

Features

  • Apply resources.
  • View workload resource revision history.
  • Create the container putty console shell when use http(s).
  • Pod util.
  • Node util.

Usage

Apply

This package support apply multiple resources to the Kubernetes cluster. It's like kubectl apply, support server-side and non server-side.

The example code in apply.

History view

This package support view the workload resource revision history. It's like kubectl rollout history.

Now only support Deployment.

The example code in history.

Exec in http

This package support create the container putty console shell when use http.

The example code in exec.