Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Using REST to do k8s


get api groups:

> curl https://kube-master:6443/

And then within a group show resource groups:

> curl https://kube-master:6443/apis -k | grep name
  "name": "extensions",
  "name": "apps",

get version

> curl https://kube-master:6443/version

Core Functionality

get pods:

curl https://kube-master:6443/api/v1/pods

Use kubectl API proxy to provide authentication

To use credentials from ~/.kube/config:

> kubectl proxy
Starting to server on


kubectl api-resources --namespaced=false