|
1 |
| -## Single script kind Kubernetes cluster -- Running on Docker |
| 1 | +# Single script Kubernetes cluster (Runs on Docker) |
2 | 2 |
|
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 | +``` |
4 | 7 |
|
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 | +``` |
6 | 12 |
|
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 |
8 | 14 |
|
9 |
| -Note: email address must be valid. |
| 15 | +- Docker service running |
10 | 16 |
|
11 |
| -### Requires: |
| 17 | +## How to |
12 | 18 |
|
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. |
14 | 37 |
|
15 | 38 | ### When running on local for `example.com` it creates...
|
16 | 39 |
|
17 | 40 | - 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` |
19 | 42 | - Dashboard running on `https://dashboard.example.com`
|
20 | 43 | - Hello world deployment running on `https://hello.example.com`
|
21 | 44 |
|
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 |
28 | 46 |
|
29 | 47 | To change the configuration from single to multi-node k8s cluster, just add workers as you need around line 55-57.
|
30 | 48 |
|
|
0 commit comments