Skip to content

How to set cluster name in Openstack Cloud Controller Manager? #2500

Open
@kralicky

Description

@kralicky

I have been running into this issue: kubernetes/cloud-provider-openstack#2241, and this comment on the issue mentions that the cluster name needs to be unique in order for LoadBalancer names to not collide.

I am currently installing the OCCM via ClusterResourceSet, like this:

apiVersion: addons.cluster.x-k8s.io/v1beta1
kind: ClusterResourceSet
metadata:
  name: openstack-ccm
  namespace: capi
spec:
  strategy: Reconcile
  clusterSelector:
    matchLabels:
      ccm: openstack
  resources:
    - name: openstack-ccm-manifests
      kind: ConfigMap

where the configmap contains all of the manifests here.

The default manifests have the "kubernetes" cluster name:

- name: CLUSTER_NAME
  value: kubernetes

How do I pass the actual cluster name to these manifests? There does not appear to be a mechanism like variable substitution or templating available in this context. Or, is there a better way to install the OCCM?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions