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 namespacesSwitch to chk cluster.
task switch-cluster chkSetup haproxy ingress
Add all repos and install the haproxy ingress.
task add-repos
task install-chart ingress-nginx values/chk.mintcloud.ch.yamlSetup cert manager
Install cert manager with Infomaniak webhook.
task install-chart cert-manager values/chk.mintcloud.ch.yamlCreate 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.yamlSetup k8up
Install k8up in the current cluster.
task install-chart k8up values/chk.mintcloud.ch.yamlCreate Odoo release
Install the CloudNativePG chart:
task install-chart cnpg values/chk.mintcloud.ch.yamlCreate a namespace for the application.
k create namespace <namespace>Select the namespace.
kubensInstall the Odoo chart.
task install-chart odoo values/odoo.chk.mintcloud.chTroubleshooting
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.