knative-istio-authz

by joaquinito2051

Helm chartv1.32.0App 1.32.0Apache-2.0

Helm chart to onboard a set of authorization-based isolated namespaces to Knative when using Istio.

About this chart

Helm chart to onboard a set of authorization-based isolated namespaces to Knative when using Istio

Usage

Prerequisite

Onboarding a set of namespaces

Imaging we want to onboard a new tenant named tenant-1 to Knative composed of two namespaces: ns1 and ns2.

  1. Create the project's namespaces by running the following commands:

    kubectl create ns ns1
    kubectl create ns ns2
    
  2. Install the Helm chart

    helm install oci://quay.io/openshift-knative/knative-istio-authz --version 1.31.0 --set "name=tenant-1" --set "namespaces={ns1, ns2}"
    

    or, view the resources you would need to onboard the project:

    helm template oci://quay.io/openshift-knative/knative-istio-authz --version 1.31.0 --set "name=tenant-1" --set "namespaces={ns1, ns2}"
    

Development

Render the templates by running the following command:

helm template ./ --values tests/values.yaml

Package the chart by running the following command:

helm package ./

Push the chart to your own account by running the following command:

helm push knative-istio-authz-0.1.0.tgz oci://quay.io/<your-username>

The chart is automatically pushed to quay.io/openshift-knative on main and release-* branches using CI.

Deploy knative-istio-authz with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has knative-istio-authz 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 chartknative-istio-authz is pinned at v1.32.0 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