Skip to content

ReToCode/knative-istio-authz-chart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Usage

Prerequisite

Setup Authorization policies for Knative system components

  1. Deny all traffic by default

    kubectl apply -f setup/deny-all-by-default.yaml
  2. Allow Knative Serving components to send requests to the Activator

    kubectl apply -f setup/allow-traffic-to-activator.yaml
  3. Allow Knative Kafka controller to probe Knative Kafka data plane for resource readiness

    kubectl apply -f setup/allow-probe-kafka-controller.yaml
  4. Allow Brokers with class MTChannelBasedBroker to communicate with the underlying channels:

    kubectl apply -f setup/allow-mt-channel-based-broker-to-channels.yaml

Onboarding a set of namespaces

Imaging we want to onboard a new project order-service 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/pierdipi/knative-istio-authz-onboarding --version 0.1.0 --set "name=order-service" --set "namespaces={ns1, ns2}"

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

    helm template oci://quay.io/pierdipi/knative-istio-authz-onboarding --version 0.1.0 --set "name=order-service" --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 by running the following command:

helm push knative-istio-authz-onboarding-0.1.0.tgz oci://quay.io/pierdipi

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published