Skip to content

Instantly share code, notes, and snippets.

@vi7
Created September 25, 2023 11:39
Show Gist options
  • Save vi7/c69d1678d94c523ee1cafab6160ce620 to your computer and use it in GitHub Desktop.
Save vi7/c69d1678d94c523ee1cafab6160ce620 to your computer and use it in GitHub Desktop.
Kubernetes public API endpoint with the cluster info
!#/usr/bin/env bash
K8S_CLUSTER_API_URL="my-cluster.example.com"
curl -ks https://"$K8S_CLUSTER_API_URL":6443/api/v1/namespaces/kube-public/configmaps/cluster-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment