K8s config

k8s_config

This is a simple module that supports getting the config of K8s clusters This module has a dependency on ionoscloud >= 6.0.2

Example Syntax


name: Get k8s config
ionoscloudsdk.ionoscloud.k8s_config:
  k8s_cluster: ''
  config_file: config.yaml
  state: present

Returned object

{
    "failed": false,
    "changed": true,
    "config": "<CONFIG_FILE_CONTENT>"
}

For more examples please check out the tests here.

state: present

  
name: Get k8s config
ionoscloudsdk.ionoscloud.k8s_config:
  k8s_cluster: ''
  config_file: config.yaml
  state: present

Available parameters for state present:

NameRequiredDescription

k8s_cluster str

True

The ID or name of the K8s cluster.

config_file str

True

The name of the file in which to save the config.

api_url str

False

The Ionos API base URL.

certificate_fingerprint str

False

The Ionos API certificate fingerprint.

username str

False

The Ionos username. Overrides the IONOS_USERNAME environment variable.

password str

False

The Ionos password. Overrides the IONOS_PASSWORD environment variable.

token str

False

The Ionos token. Overrides the IONOS_TOKEN environment variable.

wait bool

False

Wait for the resource to be created before returning. Default: True Options: [True, False]

wait_timeout int

False

How long before wait gives up, in seconds. Default: 600

state str

False

Indicate desired state of the resource. Default: present Options: ['present']

Last updated