[GH-ISSUE #335] Support for Kubernetes kind #236

Closed
opened 2026-03-01 21:41:41 +03:00 by kerem · 3 comments
Owner

Originally created by @zzxwill on GitHub (Aug 13, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/335

I use Kubernetes kind which is depended on Docker to run e2e tests and hit the issue as below.

[Go/Build] ⭐  Run Setup Kind Cluster
[Go/Build]   ☁  git clone 'https://github.com/engineerd/setup-kind' # ref=v0.4.0
[Go/Build]   🐳  docker cp src=/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 dst=/actions/
[Go/Build] Unable to copy link semver --> ../semver/bin/semver.js
[Go/Build] Unable to copy link uuid --> ../uuid/bin/uuid
[Go/Build]   💬  ::debug::isExplicit: 0.7.0
[Go/Build]   💬  ::debug::explicit? true
[Go/Build]   💬  ::debug::checking cache: /opt/hostedtoolcache/kind/0.7.0/x64
[Go/Build]   💬  ::debug::not found
| downloading kind from https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64
[Go/Build]   💬  ::debug::Downloading https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64
[Go/Build]   💬  ::debug::Destination /tmp/f533dd7b-3322-4550-a244-4392ee16d541
[Go/Build]   💬  ::debug::download complete
| [command]/bin/chmod +x /tmp/f533dd7b-3322-4550-a244-4392ee16d541
[Go/Build]   💬  ::debug::Caching tool kind 0.7.0 x64
[Go/Build]   💬  ::debug::source file: /tmp/f533dd7b-3322-4550-a244-4392ee16d541
[Go/Build]   💬  ::debug::destination /opt/hostedtoolcache/kind/0.7.0/x64
[Go/Build]   💬  ::debug::destination file /opt/hostedtoolcache/kind/0.7.0/x64/kind
[Go/Build]   💬  ::debug::finished caching tool
[Go/Build]   💬  ::debug::kind is cached under /opt/hostedtoolcache/kind/0.7.0/x64
[Go/Build]   ⚙  ::add-path:: /opt/hostedtoolcache/kind/0.7.0/x64
| Executing kind with args create,cluster,--name,kind,--wait,300s
| [command]/opt/hostedtoolcache/kind/0.7.0/x64/kind create cluster --name kind --wait 300s
| ERROR: failed to list clusters: command "docker ps -q -a --no-trunc --filter label=io.x-k8s.kind.cluster=kind --format '{{.Names}}'" failed with error: exec: "docker": executable file not found in $PATH
[Go/Build]   ❗  ::error::The process '/opt/hostedtoolcache/kind/0.7.0/x64/kind' failed with exit code 1
[Go/Build]   ❌  Failure - Setup Kind Cluster
Error: exit with `FAILURE`: 1

In all, I need docker in docker to setup kind. Is this will supported by act? Thanks.

Github workflow: https://github.com/cloud-native-application/RudrX/blob/master/.github/workflows/go.yml#L32-L35

      - name: Setup Kind Cluster
        uses: engineerd/setup-kind@v0.4.0
        with:
          version: "v0.7.0"
Originally created by @zzxwill on GitHub (Aug 13, 2020). Original GitHub issue: https://github.com/nektos/act/issues/335 I use Kubernetes kind which is depended on Docker to run e2e tests and hit the issue as below. ``` [Go/Build] ⭐ Run Setup Kind Cluster [Go/Build] ☁ git clone 'https://github.com/engineerd/setup-kind' # ref=v0.4.0 [Go/Build] 🐳 docker cp src=/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 dst=/actions/ [Go/Build] Unable to copy link semver --> ../semver/bin/semver.js [Go/Build] Unable to copy link uuid --> ../uuid/bin/uuid [Go/Build] 💬 ::debug::isExplicit: 0.7.0 [Go/Build] 💬 ::debug::explicit? true [Go/Build] 💬 ::debug::checking cache: /opt/hostedtoolcache/kind/0.7.0/x64 [Go/Build] 💬 ::debug::not found | downloading kind from https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64 [Go/Build] 💬 ::debug::Downloading https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64 [Go/Build] 💬 ::debug::Destination /tmp/f533dd7b-3322-4550-a244-4392ee16d541 [Go/Build] 💬 ::debug::download complete | [command]/bin/chmod +x /tmp/f533dd7b-3322-4550-a244-4392ee16d541 [Go/Build] 💬 ::debug::Caching tool kind 0.7.0 x64 [Go/Build] 💬 ::debug::source file: /tmp/f533dd7b-3322-4550-a244-4392ee16d541 [Go/Build] 💬 ::debug::destination /opt/hostedtoolcache/kind/0.7.0/x64 [Go/Build] 💬 ::debug::destination file /opt/hostedtoolcache/kind/0.7.0/x64/kind [Go/Build] 💬 ::debug::finished caching tool [Go/Build] 💬 ::debug::kind is cached under /opt/hostedtoolcache/kind/0.7.0/x64 [Go/Build] ⚙ ::add-path:: /opt/hostedtoolcache/kind/0.7.0/x64 | Executing kind with args create,cluster,--name,kind,--wait,300s | [command]/opt/hostedtoolcache/kind/0.7.0/x64/kind create cluster --name kind --wait 300s | ERROR: failed to list clusters: command "docker ps -q -a --no-trunc --filter label=io.x-k8s.kind.cluster=kind --format '{{.Names}}'" failed with error: exec: "docker": executable file not found in $PATH [Go/Build] ❗ ::error::The process '/opt/hostedtoolcache/kind/0.7.0/x64/kind' failed with exit code 1 [Go/Build] ❌ Failure - Setup Kind Cluster Error: exit with `FAILURE`: 1 ``` In all, I need docker in docker to setup kind. Is this will supported by act? Thanks. Github workflow: https://github.com/cloud-native-application/RudrX/blob/master/.github/workflows/go.yml#L32-L35 ``` - name: Setup Kind Cluster uses: engineerd/setup-kind@v0.4.0 with: version: "v0.7.0" ```
kerem 2026-03-01 21:41:41 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@djbender commented on GitHub (Aug 21, 2020):

you'll need to use the kitchen sink image:

act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04

I've confirmed your workflow works when ran with this command.

Check out the Runners section of the README.md for more details:
github.com/nektos/act@26e4270e41 (runners)

<!-- gh-comment-id:678310598 --> @djbender commented on GitHub (Aug 21, 2020): you'll need to use the [kitchen sink image](https://github.com/nektos/act/tree/26e4270e41446050f8fc88576ea1ab3a4475c71b#alternative-runner-images): act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 I've confirmed your workflow works when ran with this command. Check out the Runners section of the README.md for more details: https://github.com/nektos/act/tree/26e4270e41446050f8fc88576ea1ab3a4475c71b#runners
Author
Owner

@zzxwill commented on GitHub (Sep 1, 2020):

But I hit an issue by command act -v -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04. I am trying to install docker first ahead which isn't needed in Github workflow environment.

[Go/Build] ⭐  Run Setup Kind Cluster
[Go/Build]   ☁  git clone 'https://github.com/engineerd/setup-kind' # ref=v0.4.0
[Go/Build]   cloning https://github.com/engineerd/setup-kind to /Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0
[Go/Build] Unable to pull refs/heads/v0.4.0: non-fast-forward update
[Go/Build] Cloned https://github.com/engineerd/setup-kind to /Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0
[Go/Build] Checked out v0.4.0
DEBU[0292] Read action &{KinD (Kubernetes in Docker) Action Engineerd Easily run a Kubernetes cluster in your GitHub Action map[config:{Path (relative to the root of the repository) to a kind config file false } image:{Node Docker image to use for booting the cluster false } name:{Cluster context name (default kind) false kind} skipClusterCreation:{If true, the action will not create a cluster, just acquire the tools false false} version:{Version of Kind to use (default v0.7.0) false v0.7.0} wait:{Wait for control plane node to be ready (default 300s) false 300s}] map[] {node12 map[] lib/main.js  [] []} { }} from '/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0/action.yml'
DEBU[0292] About to run action &{KinD (Kubernetes in Docker) Action Engineerd Easily run a Kubernetes cluster in your GitHub Action map[config:{Path (relative to the root of the repository) to a kind config file false } image:{Node Docker image to use for booting the cluster false } name:{Cluster context name (default kind) false kind} skipClusterCreation:{If true, the action will not create a cluster, just acquire the tools false false} version:{Version of Kind to use (default v0.7.0) false v0.7.0} wait:{Wait for control plane node to be ready (default 300s) false 300s}] map[] {node12 map[] lib/main.js  [] []} { }}
DEBU[0292] type=3 actionDir=/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 Workdir=/Users/zhouzhengxi/Programming/golang/src/github.com/zzxwill/RudrX ActionCacheDir=/Users/zhouzhengxi/.cache/act actionName=engineerd-setup-kind@v0.4.0 containerActionDir=/actions
DEBU[0292] Removing /Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0/.gitignore before docker cp
[Go/Build]   🐳  docker cp src=/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 dst=/actions/
[Go/Build] Exec command '[mkdir -p /actions/]'
DEBU[0292] Writing tarball /var/folders/g5/mzgjztlj1sq7mwvltkl81_rr0000gp/T/act922795585 from /Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0
DEBU[0292] Stripping prefix:/Users/zhouzhengxi/.cache/act/ src:/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0
[Go/Build] Unable to copy link semver --> ../semver/bin/semver.js
[Go/Build] Unable to copy link uuid --> ../uuid/bin/uuid
[Go/Build] Extracting content from '/var/folders/g5/mzgjztlj1sq7mwvltkl81_rr0000gp/T/act922795585' to '/actions/'
[Go/Build] Exec command '[node /actions/engineerd-setup-kind@v0.4.0/lib/main.js]'
[Go/Build]   💬  ::debug::isExplicit: 0.7.0
[Go/Build]   💬  ::debug::explicit? true
[Go/Build]   💬  ::debug::checking cache: /opt/hostedtoolcache/kind/0.7.0/x64
[Go/Build]   💬  ::debug::not found
| downloading kind from https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64
[Go/Build]   💬  ::debug::Downloading https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64
[Go/Build]   💬  ::debug::Destination /tmp/29888a89-99a9-4f81-b68a-d796068f6fa4
[Go/Build]   💬  ::debug::download complete
| [command]/bin/chmod +x /tmp/29888a89-99a9-4f81-b68a-d796068f6fa4
[Go/Build]   💬  ::debug::Caching tool kind 0.7.0 x64
[Go/Build]   💬  ::debug::source file: /tmp/29888a89-99a9-4f81-b68a-d796068f6fa4
[Go/Build]   💬  ::debug::destination /opt/hostedtoolcache/kind/0.7.0/x64
[Go/Build]   💬  ::debug::destination file /opt/hostedtoolcache/kind/0.7.0/x64/kind
[Go/Build]   💬  ::debug::finished caching tool
[Go/Build]   💬  ::debug::kind is cached under /opt/hostedtoolcache/kind/0.7.0/x64
[Go/Build]   ⚙  ::add-path:: /opt/hostedtoolcache/kind/0.7.0/x64
| Executing kind with args create,cluster,--name,kind,--wait,300s
| [command]/opt/hostedtoolcache/kind/0.7.0/x64/kind create cluster --name kind --wait 300s
| ERROR: failed to list clusters: command "docker ps -q -a --no-trunc --filter label=io.x-k8s.kind.cluster=kind --format '{{.Names}}'" failed with error: exec: "docker": executable file not found in $PATH
[Go/Build]   ❗  ::error::The process '/opt/hostedtoolcache/kind/0.7.0/x64/kind' failed with exit code 1
[Go/Build]   ❌  Failure - Setup Kind Cluster
<!-- gh-comment-id:684179936 --> @zzxwill commented on GitHub (Sep 1, 2020): But I hit an issue by command `act -v -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04`. I am trying to install docker first ahead which isn't needed in Github workflow environment. ``` [Go/Build] ⭐ Run Setup Kind Cluster [Go/Build] ☁ git clone 'https://github.com/engineerd/setup-kind' # ref=v0.4.0 [Go/Build] cloning https://github.com/engineerd/setup-kind to /Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 [Go/Build] Unable to pull refs/heads/v0.4.0: non-fast-forward update [Go/Build] Cloned https://github.com/engineerd/setup-kind to /Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 [Go/Build] Checked out v0.4.0 DEBU[0292] Read action &{KinD (Kubernetes in Docker) Action Engineerd Easily run a Kubernetes cluster in your GitHub Action map[config:{Path (relative to the root of the repository) to a kind config file false } image:{Node Docker image to use for booting the cluster false } name:{Cluster context name (default kind) false kind} skipClusterCreation:{If true, the action will not create a cluster, just acquire the tools false false} version:{Version of Kind to use (default v0.7.0) false v0.7.0} wait:{Wait for control plane node to be ready (default 300s) false 300s}] map[] {node12 map[] lib/main.js [] []} { }} from '/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0/action.yml' DEBU[0292] About to run action &{KinD (Kubernetes in Docker) Action Engineerd Easily run a Kubernetes cluster in your GitHub Action map[config:{Path (relative to the root of the repository) to a kind config file false } image:{Node Docker image to use for booting the cluster false } name:{Cluster context name (default kind) false kind} skipClusterCreation:{If true, the action will not create a cluster, just acquire the tools false false} version:{Version of Kind to use (default v0.7.0) false v0.7.0} wait:{Wait for control plane node to be ready (default 300s) false 300s}] map[] {node12 map[] lib/main.js [] []} { }} DEBU[0292] type=3 actionDir=/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 Workdir=/Users/zhouzhengxi/Programming/golang/src/github.com/zzxwill/RudrX ActionCacheDir=/Users/zhouzhengxi/.cache/act actionName=engineerd-setup-kind@v0.4.0 containerActionDir=/actions DEBU[0292] Removing /Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0/.gitignore before docker cp [Go/Build] 🐳 docker cp src=/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 dst=/actions/ [Go/Build] Exec command '[mkdir -p /actions/]' DEBU[0292] Writing tarball /var/folders/g5/mzgjztlj1sq7mwvltkl81_rr0000gp/T/act922795585 from /Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 DEBU[0292] Stripping prefix:/Users/zhouzhengxi/.cache/act/ src:/Users/zhouzhengxi/.cache/act/engineerd-setup-kind@v0.4.0 [Go/Build] Unable to copy link semver --> ../semver/bin/semver.js [Go/Build] Unable to copy link uuid --> ../uuid/bin/uuid [Go/Build] Extracting content from '/var/folders/g5/mzgjztlj1sq7mwvltkl81_rr0000gp/T/act922795585' to '/actions/' [Go/Build] Exec command '[node /actions/engineerd-setup-kind@v0.4.0/lib/main.js]' [Go/Build] 💬 ::debug::isExplicit: 0.7.0 [Go/Build] 💬 ::debug::explicit? true [Go/Build] 💬 ::debug::checking cache: /opt/hostedtoolcache/kind/0.7.0/x64 [Go/Build] 💬 ::debug::not found | downloading kind from https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64 [Go/Build] 💬 ::debug::Downloading https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64 [Go/Build] 💬 ::debug::Destination /tmp/29888a89-99a9-4f81-b68a-d796068f6fa4 [Go/Build] 💬 ::debug::download complete | [command]/bin/chmod +x /tmp/29888a89-99a9-4f81-b68a-d796068f6fa4 [Go/Build] 💬 ::debug::Caching tool kind 0.7.0 x64 [Go/Build] 💬 ::debug::source file: /tmp/29888a89-99a9-4f81-b68a-d796068f6fa4 [Go/Build] 💬 ::debug::destination /opt/hostedtoolcache/kind/0.7.0/x64 [Go/Build] 💬 ::debug::destination file /opt/hostedtoolcache/kind/0.7.0/x64/kind [Go/Build] 💬 ::debug::finished caching tool [Go/Build] 💬 ::debug::kind is cached under /opt/hostedtoolcache/kind/0.7.0/x64 [Go/Build] ⚙ ::add-path:: /opt/hostedtoolcache/kind/0.7.0/x64 | Executing kind with args create,cluster,--name,kind,--wait,300s | [command]/opt/hostedtoolcache/kind/0.7.0/x64/kind create cluster --name kind --wait 300s | ERROR: failed to list clusters: command "docker ps -q -a --no-trunc --filter label=io.x-k8s.kind.cluster=kind --format '{{.Names}}'" failed with error: exec: "docker": executable file not found in $PATH [Go/Build] ❗ ::error::The process '/opt/hostedtoolcache/kind/0.7.0/x64/kind' failed with exit code 1 [Go/Build] ❌ Failure - Setup Kind Cluster ```
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:720006090 --> @github-actions[bot] commented on GitHub (Nov 1, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#236
No description provided.