kepler icon indicating copy to clipboard operation
kepler copied to clipboard

Create ephemeral cluster with k3d/k3s

Open akyriako opened this issue 3 years ago • 2 comments

##What Added an option for k3d/k3s clusters

##Why An alternative flavor to kind

##How Based on the existing cluster/cluster-up/kind/common.sh script logic, with the necessary minor changes to facilitate k3d

##Tested On Linux ubuntu2214 5.15.0-48-generic

##Anything else The original common.sh script creates an artefact in [manifests/kubernetes/deployment.yaml , line 124] by adding an additional trailing "-host" every time the script is being executed. Eventually, it ends up with a pretty long "proc-host-host-host-etc-etc" value for hostPath.path (mitigated for k3d common.sh)

akyriako avatar Oct 20 '22 07:10 akyriako

thanks for contribution. em... may I know any change on CI as adding github action with k3s as k8s provider?

SamYuan1990 avatar Oct 20 '22 13:10 SamYuan1990

@akyriako thank you for the contribution! Can you break the PR into two? One for the k3d cluster, that is independent and can get merged quickly. The second is to change the deployment manifests used by integration test and add the k3d to the CI.

rootfs avatar Oct 20 '22 14:10 rootfs

enabled CI for this PR.

SamYuan1990 avatar Oct 21 '22 12:10 SamYuan1990

I agree with @rootfs that this PR should not configure the CI....

I made some arguments about this in a previous comment.

ok, if so, I suppose just keep it pass with current CI with KIND, and let's have another PR for k3s in CI maybe?

SamYuan1990 avatar Oct 25 '22 12:10 SamYuan1990

Both kind and k3d creates kuberntes cluster. So we should test only one. Microshift on the other hand, creates OpenShift cluster and this should be a useful test.

marceloamaral avatar Nov 07 '22 03:11 marceloamaral

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 17 '23 13:05 stale[bot]

Is there any advantage of creating a k3d clusters instead of a kind cluster?

marceloamaral avatar May 18 '23 04:05 marceloamaral

Is there any advantage of creating a k3d clusters instead of a kind cluster?

I am also curious about this topic. I just noticed this thread since @jichenjc mentioned k3s alternative in #711 comments

jiere avatar May 30 '23 02:05 jiere

I am saying kind is container based and if we want to get real test data that we want to compare the real data instead of data from container like kind, I was told the data from container/VM is not well supported (yet)

jichenjc avatar May 30 '23 03:05 jichenjc

@akyriako , @marceloamaral , @rootfs as we moving infrastructure script into local-dev-cluster, hence I am going to move this ticket to https://github.com/sustainable-computing-io/local-dev-cluster/issues/22

SamYuan1990 avatar Jun 25 '23 02:06 SamYuan1990

close as it's an old pr and https://github.com/sustainable-computing-io/local-dev-cluster/issues/22#issuecomment-1621793840

please re open if needed.

SamYuan1990 avatar Jul 07 '23 12:07 SamYuan1990