knative
Wrapper chart for Knative Operator that installs Serving and Eventing using the operator
About this chart
Knative
Knative is a Kubernetes-based platform to build, deploy, and manage modern serverless workloads.
Introduction
This chart bootstraps Knative's Serving and Eventing components using the Knative Operator. The operator manages the lifecycle of Knative components, simplifying deployment and upgrades.
Prerequisites
- Kubernetes 1.24+ with Beta APIs enabled
- Istio installed on the cluster (Installing Istio for Knative guide)
Installing the Chart
To install the chart with the release name knative-release:
$ helm install knative-release staging/knative
This will deploy the Knative Operator along with the Serving and Eventing components.
Uninstalling the Chart
To uninstall the knative-release deployment and clean up all CRDs:
$ helm delete knative-release
$ kubectl get crds --output jsonpath='{.items..metadata.name}' \
--selector knative.dev/crd-install=true | xargs kubectl delete crd
Configuration
The following table lists the configurable parameters of the Knative chart and their default values.
| Parameter | Description | Default |
|---|---|---|
knativeOperator.enabled | Enable or disable the Knative Operator | true |
serving.enabled | Enable or disable Knative Serving | true |
serving.manifest | Configuration for the Knative Serving manifest | See values.yaml |
eventing.enabled | Enable or disable Knative Eventing | true |
eventing.manifest | Configuration for the Knative Eventing manifest | See values.yaml |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example:
$ helm install knative-release \
--set serving.domain=1.2.3.4.nip.io staging/knative
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:
$ helm install knative-release --values values.yaml staging/knative
Upgrading
The Knative Operator manages upgrades for Serving and Eventing components. To upgrade the chart, update the Chart.yaml dependencies and run:
$ helm dependency update staging/knative
$ helm upgrade knative-release staging/knative
Ensure that the values.yaml file reflects the desired configuration for the new version.
Deploy knative with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has knative 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 chartknative is pinned at v1.21.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