https://github.com/phenixblue/cm2http
A utility to discover and serve the data from a Kubernetes configMap via HTTP
https://github.com/phenixblue/cm2http
client-go configmap http json k8s watcher
Last synced: about 1 year ago
JSON representation
A utility to discover and serve the data from a Kubernetes configMap via HTTP
- Host: GitHub
- URL: https://github.com/phenixblue/cm2http
- Owner: phenixblue
- License: apache-2.0
- Created: 2022-06-07T23:27:43.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-09T17:52:13.000Z (almost 4 years ago)
- Last Synced: 2025-01-24T13:13:25.633Z (about 1 year ago)
- Topics: client-go, configmap, http, json, k8s, watcher
- Language: Go
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cm2http
cm2http serves one or more data keys from a Kubernetes configMap via HTTP in JSON format
This is useful for low-effort api's of semi-static data.
This originally came about to serve the Kubernetes API CA Certificate since it exists by default on all conformant Kubernetes clusters.
```
$ ./cm2http -h
A utility to discover and serve the data from a Kubernetes configMap via HTTP
Usage:
cm2http [flags]
Flags:
--config string config file (default is $HOME/.cm2http.yaml)
--configmap-key string name of a specific key in the configmap
--configmap-name string name of a configmap (default "kube-root-ca.crt")
--configmap-namespace string name of the namespace where the configmap is located
--context string name of the kubeconfig context to use. Leave blank for default
-h, --help help for cm2http
--kubeconfig string name of the kubeconfig file to use. Leave blank for default/in-cluster
--log-level string logging level. One of "info" or "debug" (default "info")
```