Skip to content

Instantly share code, notes, and snippets.

@ipedrazas
Created January 23, 2019 20:24
Show Gist options
  • Select an option

  • Save ipedrazas/403df2ed30ea8682e2b709ddc1c24bcf to your computer and use it in GitHub Desktop.

Select an option

Save ipedrazas/403df2ed30ea8682e2b709ddc1c24bcf to your computer and use it in GitHub Desktop.

Revisions

  1. ipedrazas created this gist Jan 23, 2019.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # To call from outside the cluster a service type `ClusterIP`
    # We use `kubectl proxy`
    kubectl proxy

    # Then, the service can be accessed by calling:
    curl http://localhost:8001/api/v1/namespaces/status/services/x01-kstatus-api:5000/proxy/api/jobs

    # This is
    # curl http://localhost:8001/api/v1/namespaces/[NAMESPACE]/services/[SERVICE:PORT]/proxy/[QUERY_STRING]