kubernetes-sigs / kind

Kubernetes IN Docker - local clusters for testing Kubernetes
https://kind.sigs.k8s.io/
Apache License 2.0
13.42k stars 1.55k forks source link

Confusing for use kind + podman on github action #3261

Open SamYuan1990 opened 1 year ago

SamYuan1990 commented 1 year ago

Hi team,

I am ref to https://github.com/kubernetes-sigs/kind/blob/main/.github/workflows/podman.yml to set up KIND via podman in my github action. Here is the error output: https://github.com/sustainable-computing-io/local-dev-cluster/actions/runs/5169622162/jobs/9311984637?pr=15#step:5:127

Cgroup controller detection is not implemented for Podman. If you see cgroup-related errors, you might need to set systemd property "Delegate=yes", see https://kind.sigs.k8s.io/docs/user/rootless/
ERROR: failed to create cluster: running kind with rootless provider requires cgroup v2, see https://kind.sigs.k8s.io/docs/user/rootless/

ref to https://github.com/kubernetes-sigs/kind/actions/runs/4864277131/jobs/8673099821 it seems we can start KIND via podman on github action without any specific configuration.

but here is which makes me confused: I tried https://github.com/kubernetes-sigs/kind/blob/main/.github/workflows/podman.yml#L62-L76 is way as cat and EOF in github action which works. but https://github.com/sustainable-computing-io/local-dev-cluster/pull/15/files#diff-7951a8490fadd323cf4791d852d026115dd0a354ec76d264a9067cca02a0bbb9 I try to start with this file specific, but won't works as cgroup v2 issue.

BenTheElder commented 1 year ago

Any reason not to use docker? It's still better supported currently.

https://kind.sigs.k8s.io/docs/user/known-issues/

ERROR: failed to create cluster: running kind with rootless provider requires cgroup v2, see https://kind.sigs.k8s.io/docs/user/rootless/

https://kind.sigs.k8s.io/docs/user/rootless/

SamYuan1990 commented 1 year ago

Any reason not to use docker? It's still better supported currently.

https://kind.sigs.k8s.io/docs/user/known-issues/

ERROR: failed to create cluster: running kind with rootless provider requires cgroup v2, see https://kind.sigs.k8s.io/docs/user/rootless/

https://kind.sigs.k8s.io/docs/user/rootless/

Hi @BenTheElder , we have the pipeline in docker. and we have feedback for related with podman as https://github.com/sustainable-computing-io/local-dev-cluster/issues/2 hence, if possible(or easy to make), I want to make a basic check for podman.