-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to access the knative serving api using curl #12410
Comments
The API for
respectively. We can find these info by using verbose logs. For example:
It says |
Nak3, you are so impressive! thanks a lot, appreciate your help. |
Hate to revive a stale issue, but @nak3 can you all add these routes to the documentation, similar to how the official Kubernetes docs provide REST API documentation? There's no mention of the REST API anywhere on the docs, and I've scanned as many docs as you all seem to have. |
Hi @olokobayusuf
Then, you can see the API reference on localhost:80 via your browswer like: |
re-opened knative/docs#3523 |
@nak3 this is an amazing easter egg; I didn't know this existed. I've bookmarked it; thank you! |
Ask your question here:
Hello,
Is there a way that I can list the knative services using REST API call?
For example to list the knative services/routes, I would run kubectl get ksvc or kubectl get route. Is there a way to get this information using curl command from a remote server.
I'm able to get the equivalent call for kubectl get svc with k8s API call - curl -k -H "Authorization: Bearer ${token}" https://masterapi:6443/api/v1/namespaces/{namespace}/service but I just want to list the knative specific services running.
My objective is to list the Knative services on a specific k8s cluster using a browser.
thanks,
Jewsco
The text was updated successfully, but these errors were encountered: