Running KCP on kubernetes. #2626
Replies: 6 comments 3 replies
-
Hi @yogesh-reddy to help I think we'll need to see your manifests (or yaml for all the created resources if you set this up manually) It sounds like you're trying to just deploy a single KCP API without any front-proxy? (which should be possible, but is different to the manifests in the kcp repo) Also more information on how you wish to connect to the API would be useful - e.g creating a Service is enough for connectivity inside the cluster, but you'll also need a Route if you want external connectivity |
Beta Was this translation helpful? Give feedback.
-
@hardys i did not look at the manifests that you shared previously ... what i did was pure entry-level trial.. So here is my use case .. so to make this. happened my first goal is to run kcp on k8s. hope that makes sense to you. If I am unable to express this use case can we get on a quick call and discuss it at any time possible for you? Thank you |
Beta Was this translation helpful? Give feedback.
-
Thanks for the information - from the slack discussion it sounds like you would like a minimal example to start with, so I pushed this manifest which shows a super-minimal example starting single-process KCP with healthchecks and a service (though obviously for non-development usage something similar to the manifests previously mentioned would be required). With that applied we can see KCP is running:
We can access the API using the generated admin kubeconfig (here I'm just accessing from inside the container but you should be able to access from another container via the Service also):
To access via the service you may also want to create some additional kubeconfig, and you could use the TLS files generated to create another client cert (or use something like cert-manager as in the manifest examples):
|
Beta Was this translation helpful? Give feedback.
-
@hardys Thanks a ton this works. or lets if the above option is not possible is there a way to generate a kubeconfig that can be used to connect to kcp running on this pod .. i can ship that kubeconfig anywhere and can use this.. like use the kubeconfig in my local system and connect to kcp running as pod on my EKS cluster. |
Beta Was this translation helpful? Give feedback.
-
Also there is no way here for an onboarded workload cluster to communicate with kcp server right? like how does syncer pod on my physical cluster know how to connect to kcp running as a pod in some cluster? |
Beta Was this translation helpful? Give feedback.
-
@yogesh-reddy I don't think there are any KCP specific issues here, shall we close this issue and track work to improve the helm charts in that repo? |
Beta Was this translation helpful? Give feedback.
-
Hi Team,
I had a use case on running KCP on Kubernetes. Since the helm chart is pretty old i had no other option.. tried docker build and used the image and ran a pod on that image..
And I have created a service that connects to the pod on port 6443 ..
but how can i access the kcp api-server .. i mean how can I get the kubeconfig etc..
for starters I have tried referencing the service
kubectl -s <svc-adress> api-resources
. but not successful.I might be doing it in a completely wrong way or there might be a prescribed way of which I am unaware..
Can you please guide through this ...
need this help badly
Beta Was this translation helpful? Give feedback.
All reactions