kusk-gateway-api

by joaquinito2051

Helm chartv0.1.28App v1.5.4

A Helm chart for the Kusk Gateway API

About this chart

Kusk Gateway API

This is the Helm chart for the Kusk Gateway API installation.

Installation

Dependencies

  • Kubernetes cluster administration rights are required as RBAC roles and rolebindings are created.

Chart installation

Add repo:

helm repo add kubeshop https://kubeshop.github.io/helm-charts
helm repo update

We use Kusk Gateway to expose the API server. So install Kusk gateway first

helm upgrade kusk-gateway kubeshop/kusk-gateway -n kusk-system --create-namespace --install --wait

Then install a private EnvoyFleet to the cluster:

helm upgrade \
	--install \
	--wait \
	--create-namespace \
	--namespace kusk-system \
	--set fullnameOverride=kusk-gateway-private-envoy-fleet \
	--set service.type=ClusterIP \
	kusk-gateway-private-envoy-fleet \
	kubeshop/kusk-gateway-envoyfleet

This will create an envoy fleet that is not reachable from outside the cluster until you port-forward to it.

Finally, install the API server:

helm upgrade \
	--install \
	--wait \
	--create-namespace \
	--namespace kusk-system \
	--set fullnameOverride=kusk-gateway-api \
	--set envoyfleet.name=kusk-gateway-private-envoy-fleet \
	--set envoyfleet.namespace=kusk-system \
	kusk-gateway-api \
	kubeshop/kusk-gateway-api

Deinstallation

helm delete kusk-gateway-api -n kusk-system
helm delete kusk-gateway-private-envoy-fleet -n kusk-system
# NOTE: this will delete CRDs too.
helm delete kusk-gateway -n kusk-system

Deploy kusk-gateway-api with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kusk-gateway-api on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkusk-gateway-api is pinned at v0.1.28 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply