Files
Kubernetes-Build/Infomaniak.md
T
Janik von Rotz 0c20e44e01 feat(docs): replace haproxy-ingress with ingress-nginx across documentation and configurations
- Update all documentation guides (Exoscale, Infomaniak, K3s, Development, Backup) to use ingress-nginx instead of haproxy-ingress
- Replace haproxy-ingress references in task commands and scripts with ingress-nginx equivalents
- Update Helm chart configurations (hugo, nextcloud, odoo, taskfileBuild, vuepress) to use nginx ingress class
- Modify ingress templates to include nginx-specific annotations and TLS configurations
- Add ingress-nginx as an external chart and remove haproxy-ingress related code
- Update Odoo chart to support python package installation and storage class configuration
- Adjust cert-manager cluster issuers to use nginx ingress class name
2025-11-13 21:38:51 +01:00

2.8 KiB

Infomaniak

Deploy the Helm charts to Infomaniak Managed Kubernetes service.

Setup project

Create new Kubernetes cluster in the Infomaniak manager. Then add an instance group.

Download the Kubeconfig file and move it.

mv ~/Downloads/pck-XXXXXXX-kubeconfig ~/.kube/config.chk
export KUBECONFIG=~/.kube/config.chk
kubectl get namespaces

Switch to chk cluster.

task switch-cluster chk

Setup haproxy ingress

Add all repos and install the haproxy ingress.

task add-repos
task install-chart ingress-nginx values/chk.mintcloud.ch.yaml

Setup cert manager

Install cert manager with Infomaniak webhook.

task install-chart cert-manager values/chk.mintcloud.ch.yaml

Create an Infomaniak API token with domain scope: https://manager.infomaniak.com/v3/infomaniak-api

Setup the secret according to clusterIssuer > Secrets.

Install cluster issuer.

task install-chart clusterIssuer values/chk.mintcloud.ch.yaml

Setup k8up

Install k8up in the current cluster.

task install-chart k8up values/chk.mintcloud.ch.yaml

Create Odoo release

Install the CloudNativePG chart:

task install-chart cnpg values/chk.mintcloud.ch.yaml

Create a namespace for the application.

k create namespace <namespace>

Select the namespace.

kubens

Install the Odoo chart.

task install-chart odoo values/odoo.chk.mintcloud.ch

Troubleshooting

VolumeLimitExceeded

Problem

New pods are pending. When checking the state of the pvc the following message is shown:

Warning  ProvisioningFailed    22s (x8 over 2m30s)  cinder.csi.openstack.org_openstack-cinder-csi-controllerplugin-7fc49d566-k8k6m_01c4c2ed-0e7c-4ca3-b7db-df8c84fc8839  failed to provision volume with StorageClass "csi-cinder-sc-retain": rpc error: code = Internal desc = CreateVolume failed with error Expected HTTP response code [202] when accessing [POST https://api.pub2.infomaniak.cloud/volume/v3/624934911cbe4e4189d060d3bc96ac76/volumes], but got 413 instead: {"overLimit": {"code": 413, "message": "VolumeLimitExceeded: Maximum number of volumes allowed (20) exceeded for quota 'volumes'.", "retryAfter": "0"}}
Normal   ExternalProvisioning  6s (x24 over 5m30s)  persistentvolume-controller                                                                                          Waiting for a volume to be created either by the external provisioner 'cinder.csi.openstack.org' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.

Solution

Log into OpenStack and delete unused volumes or update the quota for the project.