openstack-cloud-controller-manager

by CERN

Helm chartv2.37.1App v1.37.1

Openstack Cloud Controller Manager Helm Chart

About this chart

openstack-cloud-controller-manager

Deploys the OpenStack Cloud Controller Manager to your cluster.

Default configuration values are the same as the CCM itself.

How To install

You need to configure an openstack-ccm.yaml values file with at least:

  • cloudConfig.global.auth-url with the Keystone URL
  • Authentication
    • with password: cloudConfig.global.username and cloudconfig.global.password
    • with application credentials: (cloudConfig.global.application-credential-id or cloudConfig.global.application-credential-name) and cloudConfig.global.application-credential-secret
  • Load balancing
    • cloudConfig.loadBalancer.floating-network-id or
    • cloudConfig.loadBalancer.floating-subnet-id or
    • cloudConfig.loadBalancer.floating-subnet

If you want to enable health checks for your Load Balancers (optional), set cloudConfig.loadBalancer.create-monitor: true.

Then run:

helm repo add cpo https://kubernetes.github.io/cloud-provider-openstack
helm repo update
helm install openstack-ccm cpo/openstack-cloud-controller-manager --values openstack-ccm.yaml

Using an external secret

In order to use an external secret for the OCCM:

secret:
  enabled: true
  name: cloud-config
  create: false

Create the secret with:

kubectl create secret -n kube-system generic cloud-config --from-file=./cloud.conf

Tolerations

To deploy OCCM to worker nodes only (e.g. when the controlplane is isolated), adjust the tolerations in the chart:

tolerations:
  - key: node.cloudprovider.kubernetes.io/uninitialized
    value: "true"
    effect: NoSchedule

Unsupported configurations

  • The chart does not support the mounting of custom clouds.yaml files. Therefore, the following config values in the [Global] section won’t have any effect:
    • use-clouds
    • clouds-file
    • cloud

Deploy openstack-cloud-controller-manager with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openstack-cloud-controller-manager 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 chartopenstack-cloud-controller-manager is pinned at v2.37.1 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