OpenStackResources

This section describes the OpenStackResources custom resource (CR) used in Container Cloud API. The OpenStackResources object contains the list of available OpenStack resources, such as flavors, images, external networks, and compute availability zones.

For demonstration purposes, the Container Cloud OpenStackResources custom resource (CR) can be split into the following sections:

metadata

The Container Cloud OpenStackResources custom resource (CR) contains the following fields:

  • apiVersion

    Object API version that is kaas.mirantis.com/v1alpha1.

  • kind

    Object type that is OpenStackResources.

The metadata object field of the OpenStackResources resource contains the following fields:

  • name

    Name of the OpenStackResources object

  • namespace

    Project in which the OpenStackResources object has been created

Configuration example:

apiVersion: kaas.mirantis.com/v1alpha1
kind: OpenStackResources
metadata:
  name: cloud-config
  namespace: test

OpenStackResources status

The status field of OpenStackResources object contains the list of available OpenStack resources:

  • computeAZ

    List of available availability zones

  • externalNetworks

    List of available external networks with each entry containing network ID and name

  • flavors

    List of available flavors with description:

    • Disk

      Amount of disk space (in GB)

    • Ephemeral

      Amount of disk space (in GB) to use for the ephemeral partition

    • ID

      Unique ID of a flavor

    • Name

      Name of a flavor

    • RAM

      Amount of RAM to use (in MB)

    • VCPUs

      Number of virtual CPUs to use

  • images

    List of available images with ID and Name

Configuration example:

status:
  computeAZ:
  - Name: nova
  - Name: DMZ
  externalNetworks:
  - ID: c3799996-dc8e-4477-a309-09ea6dd71946
    Name: public
  flavors:
  - Disk: 500 GB
    Ephemeral: 0 GB
    ID: 06508206-c027-4596-954e-89b1f6490a43
    Name: re.jenkins.slave.big
    RAM: 65536 MB
    VCPUs: "24"
  - Disk: 160 GB
    Ephemeral: 0 GB
    ID: 0840136f-9e61-488d-a8d6-8425d0e2378e
    Name: kaas-bm.worker.160
    RAM: 12288 MB
    VCPUs: "8"
    ...
  images:
  - ID: 4779aa8e-cb59-41bb-b2ac-49bd692d8e1f
    Name: jammy-server-cloudimg-amd64-20240823
    ...