knative

by joaquinito2051

Helm chartv1.21.0App v1.21.0

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

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.

ParameterDescriptionDefault
knativeOperator.enabledEnable or disable the Knative Operatortrue
serving.enabledEnable or disable Knative Servingtrue
serving.manifestConfiguration for the Knative Serving manifestSee values.yaml
eventing.enabledEnable or disable Knative Eventingtrue
eventing.manifestConfiguration for the Knative Eventing manifestSee 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartknative is pinned at v1.21.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