https://github.com/abousselmi/k8s-kind
A simple script to bootstrap a kubernetes cluster (single or multi node) based on kind and docker
https://github.com/abousselmi/k8s-kind
bash development-environment kind kubernetes kubernetes-cluster
Last synced: 2 months ago
JSON representation
A simple script to bootstrap a kubernetes cluster (single or multi node) based on kind and docker
- Host: GitHub
- URL: https://github.com/abousselmi/k8s-kind
- Owner: abousselmi
- License: mit
- Created: 2020-04-08T13:55:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T15:58:00.000Z (almost 6 years ago)
- Last Synced: 2025-05-13T20:32:23.364Z (about 1 year ago)
- Topics: bash, development-environment, kind, kubernetes, kubernetes-cluster
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes: the simple way
A simple script to bootstrap a kubernetes cluster based on kind and docker.
## Prerequisites
Kind uses **Docker** to create cluster nodes. To install docker, please refer to: https://docs.docker.com/get-docker/
## Usage
```shell
$ git clone https://github.com/abousselmi/k8s-kind.git
$ cd k8s-kind
$ sudo ./k8s-kind.sh -m start
```
```shell
Usage: ./k8s-kind.sh OPTION COMMAND
Options:
-m bootstrap a multi node cluster
-s bootstrap a single node cluster
Commands:
start setup kubernetes cluster
stop remove the current cluster
help print usage
Example:
To bootstrap a multi node ckuster, you can do:
sudo ./k8s-kind.sh -m start
```
## Sample output
```shell
đĨ 07:14:21 PM[INFO] start bootstrapping..
đĨ 07:14:21 PM[INFO] check dependencies..
đĨ 07:14:21 PM[INFO] 'curl' is installed, continue..
đĨ 07:14:21 PM[INFO] 'docker' is installed, continue..
đĨ 07:14:21 PM[INFO] 'kind' is already installed, continue..
đĨ 07:14:21 PM[INFO] 'kubectl' is already installed, continue..
đĨ 07:14:21 PM[INFO] enable 'kubectl' autocompletion
đĨ 07:14:21 PM[INFO] create kubernetes cluster 'k8s'
Creating cluster "k8s" ...
â Ensuring node image (kindest/node:v1.17.0) đŧ
â Preparing nodes đĻ đĻ đĻ
â Writing configuration đ
â Starting control-plane đšī¸
â Installing CNI đ
â Installing StorageClass đž
â Joining worker nodes đ
Set kubectl context to "kind-k8s"
You can now use your cluster with:
kubectl cluster-info --context kind-k8s
Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community đ
đĨ 07:15:15 PM[INFO] specify the cluster 'k8s' as the current context for kubectl
Kubernetes master is running at https://127.0.0.1:32771
KubeDNS is running at https://127.0.0.1:32771/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
đĨ 07:15:16 PM[INFO] Update kubernetes config ownership
đĨ 07:15:16 PM[INFO] finished in 55 seconds.
```
## Licence
MIT