Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/himenon/kubernetes-template

Kubernetes Template: Generated By TypeScript
https://github.com/himenon/kubernetes-template

generator helm kubernetes manifest typescript yaml

Last synced: 24 days ago
JSON representation

Kubernetes Template: Generated By TypeScript

Awesome Lists containing this project

README

        

# Kubernetes Template

## Setup

```bash
# Install Package Manager
npm i [email protected]

# Install node_modules
pnpm i
```

## Build

```bash
pnpm run build
# Generate Manifest (output: overlays/*)
# Generate Report (output: report/*)
```

## Test

```bash
pnpm run test
```

## Manifest Generate Architecture

![Architecture Diagram](./architecture.png)

## Demo

1. Setup Your Kubernetes
- Use [Docker Desktop](https://docs.docker.com/desktop/kubernetes/)
2. Istio Setup
- https://istio.io/latest/docs/setup/getting-started/
- `istioctl install --set profile=demo -y`
- https://istio.io/latest/docs/setup/install/operator
- `istioctl operator init --watchedNamespaces=demo`
3. Argo Rollouts Setup
- https://argoproj.github.io/argo-rollouts/installation/

```bash
$ kubectl create ns demo
$ kubectl apply -k ./overlays/dev/
```

Write the following in `/etc/hosts`

```
127.0.0.1 pc.localhost.com
127.0.0.1 sp.localhost.com
```

**Access**

```bash
http://pc.localhost.com:30000
http://sp.localhost.com:30000
```

**Clean Up**

```bash
$ kubectl delete -k ./overlays/dev/
$ kubectl delete ns demo
```

## LICENSE

MIT [@Himenon](https://github.com/Himenon)