You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+24-23
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,27 @@ For more information on inputs, see the [API Documentation](https://developer.gi
30
30
-`install_only`: Skips cluster creation, only install kind (default: false)
31
31
-`ignore_failed_clean`: Whether to ignore the post delete cluster action failing (default: false)
32
32
33
-
## Configuring Local Registry
33
+
### Example Workflow
34
+
35
+
Create a workflow (eg: `.github/workflows/create-cluster.yml`):
36
+
37
+
```yaml
38
+
name: Create Cluster
39
+
40
+
on: pull_request
41
+
42
+
jobs:
43
+
create-cluster:
44
+
runs-on: ubuntu-latest
45
+
steps:
46
+
- name: Create k8s Kind Cluster
47
+
uses: helm/kind-action@v1
48
+
```
49
+
50
+
This uses [@helm/kind-action](https://github.com/helm/kind-action) GitHub Action to spin up a [kind](https://kind.sigs.k8s.io/) Kubernetes cluster on every Pull Request.
51
+
See [@helm/chart-testing-action](https://github.com/helm/chart-testing-action) for a more practical example.
52
+
53
+
### Configuring Local Registry
34
54
35
55
Create a workflow (eg: `.github/workflows/create-cluster-with-registry.yml`):
36
56
@@ -45,6 +65,7 @@ jobs:
45
65
runs-on: ubuntu-latest
46
66
steps:
47
67
- name: Kubernetes KinD Cluster
68
+
id: kind
48
69
uses: helm/kind-action@v1
49
70
with:
50
71
registry: true
@@ -53,9 +74,9 @@ jobs:
53
74
registry_enable_delete: true
54
75
```
55
76
56
-
This will configure the cluster with an insecure local registry at `my-registry:5001` on both the host and within cluster. Subsequent steps can refer to the registry address with the environment variable `LOCAL_REGISTRY` (i.e. `my-registry:5001`).
77
+
This will configure the cluster with an insecure local registry at `my-registry:5001` on both the host and within cluster. Subsequent steps can refer to the registry address with the output of the kind setup step (i.e. `${{ steps.kind.outputs.LOCAL_REGISTRY }}`).
57
78
58
-
**Note**: If `config` option is used, you must manually configure the cluster with registry config dir enabled at `/etc/containerd/certs.d`. For example:
79
+
**Note**: If `config` option is used, you must manually configure the cluster nodes with registry config dir enabled at `/etc/containerd/certs.d`. For example:
59
80
60
81
```yaml
61
82
kind: Cluster
@@ -66,26 +87,6 @@ containerdConfigPatches:
66
87
config_path = "/etc/containerd/certs.d"
67
88
```
68
89
69
-
### Example Workflow
70
-
71
-
Create a workflow (eg: `.github/workflows/create-cluster.yml`):
72
-
73
-
```yaml
74
-
name: Create Cluster
75
-
76
-
on: pull_request
77
-
78
-
jobs:
79
-
create-cluster:
80
-
runs-on: ubuntu-latest
81
-
steps:
82
-
- name: Create k8s Kind Cluster
83
-
uses: helm/kind-action@v1
84
-
```
85
-
86
-
This uses [@helm/kind-action](https://github.com/helm/kind-action) GitHub Action to spin up a [kind](https://kind.sigs.k8s.io/) Kubernetes cluster on every Pull Request.
87
-
See [@helm/chart-testing-action](https://github.com/helm/chart-testing-action) for a more practical example.
88
-
89
90
## Code of conduct
90
91
91
92
Participation in the Helm community is governed by the [Code of Conduct](CODE_OF_CONDUCT.md).
0 commit comments