redhat-knative-istio-authz
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
- Follow setup OpenShift Serverless with Service Mesh.
- Follow use Service Mesh to isolate network traffic with OpenShift Serverless.
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.
-
Create the project's namespaces by running the following commands:
kubectl create ns ns1 kubectl create ns ns2 -
Install the Helm chart
helm install oci://quay.io/openshift-knative/redhat-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/redhat-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 redhat-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 redhat-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 redhat-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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartredhat-knative-istio-authz is pinned at v1.37.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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