knative

by GitLab

Helm chartv0.10.0App 0.9.0Apache-2.0Verified publisher

A Helm chart for Knative

About this chart

Chart for Knative

This is a fork from the Triggermesh Knative Helm chart.

It installs the released manifest for knative, including Istio as documented

Note that because of Istio RBAC, you need Helm 2.10 or later. Helm 3 is supported as of v0.10.0 of this chart.

About this Chart

Istio

This chart installs istio in a "lean" configuration which means it lacks the sidecar injection. This chart is generated from the recommendation in the knative docs.

Knative

The Knative chart is based on the the kubernetes yaml provided in the documentation. It only provides the knative-serving functionality and not eventing. It is configured to download the yaml and templatize it in the cloudbuild step.

Setup the Chart repo

helm repo add gitlab https://charts.gitlab.io/

or if you would like to use the latest chart from master:

git clone https://gitlab.com/gitlab-org/charts/knative.git
helm install knative

And update your chart repos:

helm repo update

Search for knative and install

helm search knative
helm install --debug --dry-run gitlab/knative

If you are sure you want to do the install:

helm install gitlab/knative

Support

We would love your feedback on this chart so don't hesitate to let us know what is wrong and how we could improve it, just file an issue

Upgrading Knative Version

Historically, this chart was compiled using a script and downloaded the knative-serving portion from https://github.com/knative/serving/releases/download/{version}/serving-post-1.14.yaml.

You can still do that!

  1. Download the new version of the knative-serving yaml

  2. Replace instances of config-domain with config-domain-example (Yes, this results in resources named config-domain-example-example. No, we shouldn't change it at this point.)

  3. Replace instances of {{ with {{ "{{" }}. Helm doesn't like the {{, but it shows up in the template.

  4. Remove instances of namespace creation so they happen as a part of the knative pre-install

  5. Remove any duplicate components (I guess this happens sometimes?)

  6. Insert all CRDs to the crds folder and annotate them with

    metadata:
      annotations:
        "helm.sh/hook": "crd-install"
    
  7. Insert the new knative-serving YAML into knative.yaml leaving the two Namespace creations at the top and the last ConfigMap creation at the bottom. (There are comments to make sure you see the right spot.)

Code of Conduct

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 v0.10.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