Kubernetes cluster

Example Syntax

    - name: Create or edit k8s cluster
      ionoscloudsdk.ionoscloud.k8s_cluster:
        cluster_name: "{{ cluster_name }}" 
        maintenance_window:
          day_of_the_week: 'Tuesday'
          time: '13:03:00'
        k8s_version: 1.20.10
      register: k8s_response

    - name: Update k8s version of cluster above
      ionoscloudsdk.ionoscloud.k8s_cluster:
        k8s_cluster_id: "{{ k8s_response.cluster.id }}"
        cluster_name: "{{ k8s_response.cluster.properties.name }}"
        state: update

    - name: Delete a k8s cluster
      ionoscloudsdk.ionoscloud.k8s_cluster:
        k8s_cluster_id: "{{ k8s.id }}"
        state: absent

Parameter Reference

The following parameters are supported:

Last updated