knative
by GitLab
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!
-
Download the new version of the knative-serving yaml
-
Replace instances of
config-domainwithconfig-domain-example(Yes, this results in resources namedconfig-domain-example-example. No, we shouldn't change it at this point.) -
Replace instances of
{{with{{ "{{" }}. Helm doesn't like the{{, but it shows up in the template. -
Remove instances of namespace creation so they happen as a part of the knative pre-install
-
Remove any duplicate components (I guess this happens sometimes?)
-
Insert all CRDs to the
crdsfolder and annotate them withmetadata: annotations: "helm.sh/hook": "crd-install" -
Insert the new
knative-servingYAML intoknative.yamlleaving 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartknative is pinned at v0.10.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