Skip to content

CloudProvider Configuration ​

This document describes the CloudProvider configuration for the STACKIT Gardener Extension, including the cloudprovider secret and the CloudProfileConfig.

CloudProvider Secret ​

The cloudprovider secret requires the following fields:

FieldKeyDescriptionRequired
Project IDproject-idproject identifierYes
Service Account JSONserviceaccount.jsonservice account credentials in JSON formatYes

Example Secret:

yaml
apiVersion: v1
kind: Secret
metadata:
  name: cloudprovider
  namespace: shoot--<project>--<cluster>
type: Opaque
stringData:
  project-id: <project-id>
  serviceaccount.json: <sa-json>

The service account needs the following permissions:

PermissionPurpose
nlb.adminCCM service-controller and network load balancer
blockstorage.adminCSI driver
compute.adminCCM node-controller and MCM
iaas.network.adminbastion and infrastructure controller
iaas.isoplated-network.admininfrastructure controller

CloudProfileConfig Fields ​

Example with comments:

yaml
providerConfig:
  # image mappings used for bastion and workers
  machineImages:
    - name: ubuntu
      versions:
        - version: "22.04"
          regions:
            - name: eu01
              # provider-specific image ID
              id: <image-id>
              architecture: amd64
  # rescan block devices after resize
  rescanBlockStorageOnResize: true
  # list of IPs of DNS servers used while creating subnets
  dnsServers:
    - 1.1.1.1
  # shoot storage classes
  storageClasses:
    - name: default
      default: true
      parameters:
        type: "storage_premium_perf4"
      provisioner: block-storage.csi.stackit.cloud