Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/robincher/kong-flux-gitops
- Owner: robincher
- License: mit
- Created: 2022-10-12T12:33:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-13T05:52:07.000Z (9 months ago)
- Last Synced: 2024-02-14T05:34:44.409Z (9 months ago)
- Language: Shell
- Size: 304 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-nodegroupeksctl 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 requiredflux 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