Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/robincher/kong-flux-gitops

Flux GitOps Demo for Kong Products
https://github.com/robincher/kong-flux-gitops

Last synced: about 1 month ago
JSON representation

Flux GitOps Demo for Kong Products

Awesome Lists containing this project

README

        

# Kong Flux Gitops

[![][kong-logo]][kong-url]

## Introduction

Reference setup of deploying Kong using Flux v2

![Flux-Diagram](assets/kong-flux.png?raw=true)

## Set-up

For this reference implementation, we will use Github to store our artifacts , and EKS for the deployments. You can imeplement this using any CI/CD toolings or any Kubernetes clusters.

```
# Creating a Sample Cluster in AWS
eksctl create cluster --name Kong-GitOps-Test-Cluster --version 1.24 --region ap-southeast-1 --without-nodegroup

eksctl create nodegroup --cluster Kong-GitOps-Test-Cluster --name Worker-NG --region ap-southeast-1 --node-type m5.large --nodes 1 --max-pods-per-node 50
```

### Bootstraping Flux

The bootstrap github command creates a GitHub repository if one doesn’t exist and commits the Flux components manifests to specified branch. Then it configures the target cluster to synchronize with that repository by setting up an SSH deploy key or by using token-based authentication

```
# Set Personal Access Token
export GITHUB_TOKEN=

flux bootstrap github \
--owner=my-github-username \
--repository=my-repository \
--path=clusters/my-cluster \
--branch=master \
--personal
```

```
# Force Reconcilation if required

flux suspend hr kong -n kong-enterprise
flux resume hr kong -n kong-enterprise
```

If required, you also can remove Flux from the cluster by running the following command

```
flux uninstall --namespace=flux-system
```

[kong-url]: https://konghq.com/
[kong-logo]: https://konghq.com/wp-content/uploads/2018/05/kong-logo-github-readme.png