Skip to content

openstack-scs-1-27-v2

Compare
Choose a tag to compare
@paulphys paulphys released this 16 Jan 15:02
· 117 commits to main since this release
cbb9387

To use the CSO to download and install this ClusterClass you can apply the following resource:

apiVersion: clusterstack.x-k8s.io/v1alpha1
kind: ClusterStack
metadata:
  name: openstack-scs-1-27-v2
spec:
  provider: openstack
  name: scs
  kubernetesVersion: "1.27"
  channel: stable
  autoSubscribe: false
  noProvider: true
  versions:
    - v2

To create a cluster you need a secret to authenticate against your OpenStack provider:

apiVersion: v1
kind: Secret
metadata:
  name: openstack-scs-1-27-v2-cloud-config
data:
  cacert: <base64 of a CA that signs the openstack API endpoint>
  clouds.yaml: <base64 of the openstack clouds.yaml> # make sure that the name of the cloud is the same as the one referenced in openstackcluster.spec.cloudName

After that you can create your cluster with the normal Cluster-API cluster resource. Some cluster-class specific variables are mentioned in this example too, you can alter them to fit your needs. For the full list of possible variables you can check out the cluster-class resource unter .spec.variables

apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
  name: templatecluster
spec:
  clusterNetwork:
    pods:
      cidrBlocks:
        - 192.168.0.0/16
    serviceDomain: cluster.local
    services:
      cidrBlocks:
        - 10.96.0.0/12
  topology:
    variables:
      - name: controller_flavor
        value: "SCS-2V-4-50"
      - name: worker_flavor
        value: "SCS-2V-4-50"
      - name: external_id
        value: "ebfe5546-f09f-4f42-ab54-094e457d42ec"
      - name: dns_nameservers
        value: 
          - "9.9.9.9"
          - "8.8.8.8"
    class: openstack-scs-1-27-v2
    controlPlane:
      replicas: 1
    version: v1.27.8
    workers:
      machineDeployments:
        - class: capi-openstack-scs-1-27-v2-md-0-no1
          failureDomain: nova
          name: capi-openstack-scs-1-27-v2-md-0-no1
          replicas: 3