ODA Canvas installation¶
Watch: Part 2, How do I buy or build an ODA Canvas?
A 9:30 video in the ODA Canvas training series. Watch it with chapters and a transcript, or on YouTube.
The Reference Implementation of the ODA Canvas is a set of Helm charts that can be used to install and configure a fully working Canvas. The Reference Implementation is built on top of Kubernetes and Istio.
Software Versions¶
For each release, we will support a min and max Kubernetes version.
ODA Component version |
Min Kubernetes version |
Max Kubernetes version |
|---|---|---|
v1alpha4 |
1.20 |
1.22 |
v1beta1 |
1.22 |
1.25 |
v1beta2 |
1.22 |
1.27 |
v1beta3 |
1.22 |
1.29 |
v1beta4 |
1.22 |
1.29 |
v1 |
1.22 |
1.30 |
If you are connected to an ODA Canvas, to test what version of Canvas it is, use the command:
kubectl get crd components.oda.tmforum.org -o jsonpath='{.spec.versions[?(@.served==true)].name}'
It will return the versions of components the canvas supports. A canvas should support N-2 versions of a component i.e. for the v1 canvas, it will support components that are v1, v1beta4, v1beta3 (and v1beta2 with a deprecation warning).
We will test the Reference Implementation Canvas against a range of kubernetes versions and on a number of different deployments.
Kubernetes deployment |
Tested |
Notes |
|---|---|---|
AWS EKS |
yes |
EKS 1.29 |
Rancher on AWS |
Yes |
[Open Digital Lab environment] |
Azure AKS |
Yes |
|
GCP GKE |
Yes |
[Innovation Hub environment] |
Microk8s |
Yes |
Enable |
MiniKube |
Yes |
v1.34.0 =< Istio is installed by default so only the itsio/gateway chart needs configuring |
Docker Desktop |
Yes |
see also devcontainer.md |
Kind |
Yes |
Used in all the GitHub action automated testing. |
K3s |
Yes |
|
(other) |
To suggest additional environments please add to this issue |
The environment where the chart has been tested has the following
Software |
Version |
|---|---|
Istio |
1.16.1 |
Helm |
3.10 |
The helm chart installs the following updated versions of third party to
Software |
Version |
|---|---|
Cert-Manager |
1.20 |
Keycloak |
20.0.3 |
Postgress |
15.0.1 |
Configuration values¶
The values used here
Hardware requirements¶
The hardware requirements for the reference implementation are low. To deploy the reference implementation and run all the tests, the following minimum requirements should be adequate:
CPU: 4 cores; AMD64 architecture, but we are also beginning to investigate running on ARM.
RAM: 16Gb
Storage: 50Gb
Operating system: any supported by your hardware that will run Kubernetes. For our testing and development we have used several different Linux distributions and Windows 11.
To host a component on the Reference Canvas you will have to account for its requirements in addition to the minimum.
Environment installation¶
1. Kubernetes distribution¶
Prerequisites: a running K8S distribution.
The procedure has been tested
local k3s distribution, rancher desktop or similar
AWS Kops with AmazonVPC as network and with and without cert-manager managed by kops
We assume there is a kubeconfig file available with adequate permissions on the K8s cluster to:
Manage namespaces
Install CRDs
Manage resources in namespaces
Run the following to check that you have the required Kubernetes permissions to run the install (or run ./installation/precheck.sh):
kubectl auth can-i create namespaces --all-namespaces
kubectl auth can-i create customresourcedefinitions --all-namespaces
kubectl auth can-i create clusterroles --all-namespaces
kubectl auth can-i create clusterrolebindings --all-namespaces
kubectl auth can-i create mutatingwebhookconfigurations --all-namespaces
kubectl auth can-i create validatingwebhookconfigurations --all-namespaces
kubectl auth can-i create clusterissuers --all-namespaces
kubectl auth can-i create serviceaccounts
kubectl auth can-i create secrets
kubectl auth can-i create configmaps
kubectl auth can-i create roles
kubectl auth can-i create rolebindings
kubectl auth can-i create services
kubectl auth can-i create deployments
kubectl auth can-i create statefulsets
kubectl auth can-i create gateways
kubectl auth can-i create jobs
kubectl auth can-i create certificates
kubectl auth can-i create issuers
2. Helm¶
A Helm 3.0+ installation is needed.
Helm currently has an issue with the dependencies declared, the helm dependency update command only takes care of the dependencies at the first level preventing the correct installation. It supposes to be addressed in a future (May’23) 3.12 version
Until that version is released, we can use a plugin to sort it out this https://github.com/Noksa/helm-resolve-deps
helm plugin install --version "main" https://github.com/Noksa/helm-resolve-deps.git
The charts used need the following repositories
helm repo add jetstack https://charts.jetstack.io
helm repo add bitnami https://charts.bitnami.com/bitnami
3. Istio¶
We follow the helm steps provided by Istio
helm repo add istio https://istio-release.storage.googleapis.com/charts
helm repo update
kubectl create namespace istio-system
helm install istio-base istio/base -n istio-system
helm install istiod istio/istiod -n istio-system --wait
kubectl create namespace istio-ingress
kubectl label namespace istio-ingress istio-injection=enabled
helm install istio-ingress istio/gateway -n istio-ingress --set labels.app=istio-ingress --set labels.istio=ingressgateway --wait
4. HashiCorp Vault¶
By default HashiCorp Vault is deployed into the namespace canvas-vault.
The deployment can be disabled by setting canvas-vault.enabled to false in the values.yaml:
Instead of changing the values.yaml the value can also be overridden on the command line:
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace --set=canvas-vault.enabled=false
If HashiCorp Vault is NOT installed:
everything works fine as long as Secrets-Management is not requested by any component.
If Secrets-Management is needed by a component, this component will not reach the state “Completed” but get stuck in state “InProgress-SecretsConfig”. Also the Secrets-Management-Operator
canvas-smanopin the canvas namespace will have a failure withCreateContainerConfigError.
Components which do not request Secrets-Management will work without any errors.
5. Reference implementation¶
Add oda-canvas helm repo
helm repo add oda-canvas https://tmforum-oda.github.io/oda-canvas helm repo update
Install the reference implementation
Do not use
--waitonhelm installorhelm upgrade. The chart runs post-install hooks that create TLS certificates and initialize Vault. With--wait, Helm blocks until Deployments and StatefulSets are Ready before running those hooks; but since several workloads need hook-created secrets first, the whole installation ends in a deadlock. Install without--wait; hooks run immediately after the manifest phase and pods recover as secrets appear. A--timeoutis still useful for hook completion.Istio API Operator as the Default: By default, the Istio API Operator is enabled in the Canvas installation. If you do not modify the values.yaml file, Canvas will use the Istio API Operator which manages a Canvas environment that exposes APIs through the Istio Service Mesh without any additional API Gateway.
For Istio (Default) no change required in values.yaml.:
api-operator-istio: enabled: true apisix-gateway-install: enabled: false kong-gateway-install: enabled: false
Install the canvas using the following command.
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace
Selecting a Different Gateway Operator (Optional):
For users seeking advanced API gateway capabilities, the ODA Canvas provides the option to install either the Kong Gateway or the APISIX Gateway.These gateways offer powerful features for managing APIs, including traffic management, security, load balancing, rate limiting, and observability. If you prefer to use Apisix or Kong, update the values.yaml file for the Canvas Helm chart.Only one API operator can be enabled at a time.
For Apisix change required in values.yaml file to disable Istio and enable Apisix.:
api-operator-istio: enabled: false apisix-gateway-install: enabled: true kong-gateway-install: enabled: false
Using updated values.yaml directly Install the canvas using the following command.
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace -f values.yaml
“or”
If you prefer to use the –set option instead of editing values.yaml.You can disable Istio and enable Apisix inline without modifying your values file:
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace \ --set api-operator-istio.enabled=false \ --set apisix-gateway-install.enabled=true \ --set kong-gateway-install.enabled=false
For Kong change required in values.yaml file to disable Istio and enable Kong.:
Prerequisite: Install the Gateway API CRDs if required to enable the advanced networking capabilities required by Kong Gateway:
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.0.0/standard-install.yaml
api-operator-istio: enabled: false apisix-gateway-install: enabled: false kong-gateway-install: enabled: true
Using updated values.yaml directly Install the canvas using the following command.
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace -f values.yaml
“or”
If you prefer to use the –set option instead of editing values.yaml.You can disable Istio and enable Kong inline without modifying your values file:
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace \ --set api-operator-istio.enabled=false \ --set apisix-gateway-install.enabled=false \ --set kong-gateway-install.enabled=true
Component Registry¶
[!NOTE] The Component Registry is included in the
mainbranch, but is not part of the latest release (1.2.5 from March 2026).
By default, the Component Registry is deployed into the canvas namespace.
A description of the UI and instructions on how to set up Component Registry for a multi-canvas scenario
can be found here: Component Registry
Disable Component Registry¶
The deployment of the Component Registry can be disabled by setting component-registry.enabled to false in the values.yaml:
To tell the dependency resolver that there is no Component Registry the componentRegistryUrl has to be removed:
Instead of changing the values.yaml, the values can also be overridden on the command line:
helm install canvas oda-canvas/canvas-oda \
-n canvas --create-namespace \\
--set component-registry.enabled=false \
--set dependentapi-simple-operator.componentRegistryUrl=
In a single canvas scenario everything works as expected.
Dependencies are resolved by directly using Kubernetes Custom Resources instead of the Component Registry.
Local clusters (kind)¶
kind has no load balancer, so the istio-ingress service never gets an external IP. Two things depend on that address.
The Istio pre-install check. pre-install-check-istio fails while the ingress has no external IP. Skip it, as the CI workflows do:
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace --set preqrequisitechecks.istio=false
API URLs. The API operator builds each ExposedAPI URL from the ingress address. Without one, the URLs stay empty and components stay at In-Progress-CompCon. Give the ingress an address before installing components, because the operator reads it when the APIs are created (see #621). Either:
run cloud-provider-kind, which allocates LoadBalancer IPs (used in the
Chart-Releaser-ReleasedChartTester-TrivyScannerworkflow); oron a single machine, set the address yourself and forward the gateway ports to it:
kubectl patch svc istio-ingress -n istio-ingress --subresource=status --type=merge \ -p '{"status":{"loadBalancer":{"ingress":[{"ip":"127.0.0.1"}]}}}' kubectl port-forward -n istio-ingress svc/istio-ingress 80:80 443:443
Conformance testing. The TM Forum Open API CTKs run in Docker containers and call the URLs the canvas publishes. Inside a container 127.0.0.1 is the container itself, so use an address that both your machine and its containers can reach:
Docker Desktop: use the hostname
host.docker.internal({"hostname":"host.docker.internal"}in the patch above). The containers reach it through Docker Desktop; to call the APIs from the host as well, the port-forward must also listen on the addresshost.docker.internalresolves to on the host.Linux: use the
docker0address (for example172.17.0.1) and run the port-forward with--address 0.0.0.0.
Troubleshooting¶
Error installing: values don’t meet the specifications of the schema(s)¶
If you see an error like this, it means that you have enabled more than one gateway operator at the same time. The chart’s schema validation enforces that only one gateway operator (Istio, Apisix, or Kong) can be active. To resolve this, edit your values.yaml so that only one of these is set to true and the others are set to false.
Error installing: BackoffLimitExceeded¶
The installation can fail with an error
1. Error: INSTALLATION FAILED: failed pre-install: job failed: BackoffLimitExceeded
It can be failed due to below mentioned reasons.Please use –debug option in helm install command in order to verify the reason
Prehook to check the prerequisite for istio-ingress service in istio-ingress namespace.
To solve this ensure below points:
a. Istio in properly installed in istio-ingress namespace and the service has obtained an External IP
b. Virtual Service CRD is installed in the cluster.
2. Error: INSTALLATION FAILED: failed post-install: job failed: BackoffLimitExceeded
There are two major causes of this error
An error on the Job for configuring keycloak
kubectl get pods -n canvas
NAME READY STATUS RESTARTS AGE
canvas-keycloak-0 1/1 Running 0 4m43s
canvas-keycloak-keycloak-config-cli-5k6h7 0/1 Error 0 2m50s
canvas-keycloak-keycloak-config-cli-fq5ph 1/1 Running 0 30s
canvas-postgresql-0 1/1 Running 0 4m43s
compcrdwebhook-658f4868b8-48cvx 1/1 Running 0 4m43s
job-hook-postinstall-6bm99 0/1 Completed 0 4m43s
oda-controller-d5c495bbb-crt4t 2/2 Running 0 4m43s
Checking the logs of the failed Job
2023-02-01 15:23:19.488 INFO 1 --- [ main] d.a.k.config.provider.KeycloakProvider : Wait 120 seconds until http://canvas-keycloak-headless:8083/auth/ is available ...
2023-02-01 15:25:19.511 ERROR 1 --- [ main] d.a.k.config.KeycloakConfigRunner : Could not connect to keycloak in 120 seconds: HTTP 403 Forbidden
That means that your k8s cluster assign IPs to PODs that Keycloak consider public ones and forced to use HTTPS
The ranges valid are the following
localhost, 127.0.0.1, 10.x.x.x, 192.168.x.x, and 172.16.x.x
An Error in the Job but caused because the canvas-keycloak-0 that is in CrashLoopBackOff
kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
canvas canvas-keycloak-0 0/1 CrashLoopBackOff 4 (89s ago) 6m11s
canvas canvas-keycloak-keycloak-config-cli-9ks9d 0/1 Error 0 2m28s
canvas canvas-keycloak-keycloak-config-cli-cd2gv 0/1 Error 0 4m38s
canvas canvas-postgresql-0 1/1 Running 0 6m11s
canvas compcrdwebhook-658f4868b8-v9sc2 1/1 Running 0 6m11s
canvas job-hook-postinstall-v56pt 0/1 Completed 0 6m10
Checking the logs kubectl logs -n canvas sts/canvas-postgresql we can see an error
FATAL: password authentication failed for user "bn_keycloak"
In that case, a previous installation left a PVC reused by the Postgres pod.
To solve that issue
Uninstall the helm chart
Delete the PVC with
kubectl delete pvc -n canvas data-canvas-postgresql-0reinstall the canvas
Error installing : Failed post-install¶
The installation could fail with this error
failed post-install: warning: Hook post-install canvas-oda/charts/cert-manager-init/templates/issuer.yaml failed: Internal error occurred:
failed calling webhook "webhook.cert-manager.io": failed to call webhook: Post "https://canvas-cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s":
x509: certificate signed by unknown authority
That error arises when Cert-Manager is not ready to accept Issuers
Try first to uninstall the chart
helm uninstall -n canvas canvas
Delete persistence volume claim used for Keycloak
kubectl delete pvc -n canvas data-canvas-postgresql-0
Then manually delete the Lease object that causes the problem (Cert Manager relies on this object to select a leader)
kubectl get lease -n kube-system
Force the release of the lease without waiting for a timeout
kubectl delete lease cert-manager-cainjector-leader-election -n kube-system
The post-install hook waits for the cert-manager webhook to be ready before creating issuers, for up to
cert-manager-init.certManagerReadyTimeout seconds (default 600). If the wait timed out, increase it, for example
--set cert-manager-init.certManagerReadyTimeout=900, and reinstall.
Changes¶
The Helm chart has been refactored to move all the different subcharts to the same level to improve readability. A new chart, oda-ca has been created as an umbrella to simplify the deployment.
OLD |
NEW |
DESCRIPTION |
|---|---|---|
shell script |
oda-ca |
Chart of chart. |
shell script |
cert-manager-init |
Install cert-manager Deploy Issuer and generate Certificate used by CRD webhook |
canvas/chart/keycloak |
Bitnami/keycloak |
Direct remote dependency on oda-ca |
canvas/ |
canvas-namespaces |
Namespaces |
canvas/chart/controller |
controller |
ODA ingress controller |
canvas/chart/crds |
oda-crds |
ODA crds |
canvas/chart/weebhooks |
oda-webhook |
ODA mutating webhook to handle conversion among versions |
oda-canvas helm chart uninstallation¶
Uninstall any components first: the chart’s pre-uninstall check aborts the uninstallation while components are deployed. Then uninstall the canvas release (named canvas in the install steps above):
helm uninstall canvas -n canvas