go-k8sproxy

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: GPL-3.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-k8sproxy

A simple application that queries a Kubernetes cluster API and returns JSON output for various workloads.

Supports running as an application in-cluster and out-of-cluster

Environment vars:
Environment Var Default Description
IN_CLUSTER true set to false to run application out-of-cluster
KUBE_CONFIG_PATH $HOME/.kube/config used for out-of-cluster mode only /<path>/<to>/<your>/<kubeconfig>/<file>
Supported endpoints:
/deployments
/daemonsets
/cronjobs
Supported query params:
ns = namespace
name = workload name
verbose = true to get full manifest output
Examples:
curl -s "http://localhost:5000/deployments"

curl -s "http://localhost:5000/daemonsets/ns=kube-system&name=kube-proxy"

curl -s "http://localhost:5000/cronjobs/verbose=true"
Example output:
curl -s "http://localhost:5000/deployments"
[
  {
    "name": "coredns",
    "namespace": "kube-system",
    "Container": [
      {
        "imagename": "registry.k8s.io/coredns/coredns",
        "shortname": "coredns",
        "version": "v1.11.3"
      }
    ]
  },
  {
    "name": "local-path-provisioner",
    "namespace": "local-path-storage",
    "Container": [
      {
        "imagename": "docker.io/kindest/local-path-provisioner",
        "shortname": "local-path-provisioner",
        "version": "v20250214-acbabc1a"
      }
    ]
  }
]
Installation
helm install k8sproxy -n k8sproxy --create-namespace oci://ghcr.io/mmd1999/k8sproxy/k8sproxy:0.1.1

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址