Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gawsoftpl/k8s-dev

Create k8s cluster for dev or tests
https://github.com/gawsoftpl/k8s-dev

Last synced: 9 days ago
JSON representation

Create k8s cluster for dev or tests

Awesome Lists containing this project

README

        

# Overview

## 1. Create secrets for private repo for k8s
```sh
export NAMESPACE=default
export DOCKER_PRIVATE_ENDPOINT=private.repo.com
export DOCKER_PRIVATE_USERNAME=user
export DOCKER_PRIVATE_PASSWORD=password
./create-private-docker-secret.sh
```

## 2. Create kind cluster
Script will create dev Kubernetes environment for dev or tests via Kind

1. Create registry for multi node cluster
2. Create registry proxy for docker.io and quay.io
3. Create cluster k8s

### How to run
1. Add kind-registry to hosts table
```sh
echo "127.0.0.1 registry" >> /etc/hosts
```
2. Run script
```sh
export WORKERS_NUM=0
./kind-dev-cluster.sh
```

### Requirements
```
Docker
k3d
kind
```