Skip to content

Commit ad3c531

Browse files
author
gespinal
committed
feat: add k3d
1 parent df056c7 commit ad3c531

File tree

3 files changed

+451
-28
lines changed

3 files changed

+451
-28
lines changed

README.md

+32-14
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,48 @@
1-
## Single script kind Kubernetes cluster -- Running on Docker
1+
# Single script Kubernetes cluster (Runs on Docker)
22

3-
Just run `./install_kind_kubernetes_cluster.sh example.com` and the script will create a single node k8s cluster for your local tests.
3+
### K3d
4+
```
5+
./install_k3d_kubernetes_cluster.sh
6+
```
47

5-
### If you have a `domain_name` you can run with Let's Encrypt SSL
8+
### Kind
9+
```
10+
./install_kind_kubernetes_cluster.sh
11+
```
612

7-
Run `./install_kind_kubernetes_cluster.sh domain_name [email protected]` and the script will create a single node k8s cluster for your remote tests.
13+
### Requirements
814

9-
Note: email address must be valid.
15+
- Docker service running
1016

11-
### Requires:
17+
## How to
1218

13-
- Docker service running
19+
### For local tests
20+
21+
The script will create a single node k8s cluster for your local tests
22+
23+
```
24+
./install_k3d_kubernetes_cluster.sh example.com
25+
```
26+
27+
### If you have a `domain_name` you can run with Let's Encrypt SSL
28+
29+
The script will create a single node k8s cluster for your tests using Let's Encrypt certificates
30+
31+
```
32+
# Use second parameter for let's encrypt staging and prd
33+
./install_k3d_kubernetes_cluster.sh domain_name [stg|[prd]] [email protected]
34+
```
35+
36+
Note: email address must be valid.
1437

1538
### When running on local for `example.com` it creates...
1639

1740
- Single node kind k8s cluster running on docker containers
18-
- Insecure docker registry running on `http://localhost:5001`
41+
- Insecure docker registry running on `http://local.registry:5001`
1942
- Dashboard running on `https://dashboard.example.com`
2043
- Hello world deployment running on `https://hello.example.com`
2144

22-
### Notes
23-
24-
- If ran multiple times it will delete the old cluster and re-create a new one.
25-
- Default cluster name is `kind-kind`, but can be customized updating the `${CLUSTER_NAME}` variable on line 10 of the script.
26-
27-
### Multi-node cluster
45+
### Kind mlti-node cluster
2846

2947
To change the configuration from single to multi-node k8s cluster, just add workers as you need around line 55-57.
3048

0 commit comments

Comments
 (0)