# Direct access to the Upstream Kubernetes Cluster API

**URL:** <https://forums.suse.com/t/direct-access-to-the-upstream-kubernetes-cluster-api/20620>\
**Category:** SUSE Rancher Prime\
**Created:** [June 29, 2021, 1:54pm UTC](https://forums.suse.com/t/direct-access-to-the-upstream-kubernetes-cluster-api/20620 "2021-06-29T13:54:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanMar](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@DanMar](https://forums.suse.com/u/DanMar)\
**Post date:** [June 29, 2021, 1:54pm UTC](https://forums.suse.com/t/direct-access-to-the-upstream-kubernetes-cluster-api/20620/1 "2021-06-29T13:54:23Z")

</div>

Hello community  
I have created a service account on a Kubernetes upstream cluster. The account is used by an application (hosted outside of the cluster) who needs the service account to directly access the Kubernetes API via curl. The problem is that I don’t know how to access the rest API directly, because normally i use the rancher url.

I have tried to access the IP of the control plane. Unfortunately without success.

Has anyone successfully used curl to access the Kuberneets Upstreap Rest API?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [June 29, 2021, 4:58pm UTC](https://forums.suse.com/t/direct-access-to-the-upstream-kubernetes-cluster-api/20620/2 "2021-06-29T16:58:43Z")

</div>

Direct access depends on the kind of cluster/what provisioned it, but would normally be port 6443 on one of the control plane nodes.

You can also go through us, `https://<your server>/k8s/clusters/<cluster id>` gets you to the k8s API for any cluster. But we authenticate the request before proxying to the cluster and can’t do that with service accounts, so that only works with our API keys.

---

<div class="post-metadata">

**Author:** ![DanMar](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@DanMar](https://forums.suse.com/u/DanMar)\
**Post date:** [July 8, 2021, 10:39am UTC](https://forums.suse.com/t/direct-access-to-the-upstream-kubernetes-cluster-api/20620/3 "2021-07-08T10:39:19Z")

</div>

Thanks vincent. I was able to connect
