Remove your cluster automatically at the specified date, or after the specified time. You can modify the date later, or deactivate the Expiration service to keep the cluster indefinitely.

Activate the Expiration integrated service 🔗︎

Open a shell and run the following command:

% banzai cluster service expiry activate

Complete the integrated service activation wizard.

Alternatively, it’s possible to pass the activation request to the tool using a (json) file, or by specifying the activation payload inline (as a here document):

% banzai cluster service expiry activate --file - <<EOF
{
    "spec": {
        "date": "2020-01-22T09:06:34Z"
    }
}
EOF

Deactivate the Expiration integrated service 🔗︎

Open a shell and run the following command:

% banzai cluster service expiry deactivate

Update the expiration date 🔗︎

The update command works similarly to the activate command. You can either:

  • Run the following command and complete the update wizard:

    % banzai cluster service expiry update
    
  • Or provide payload of the update in a file or as a here document:

    % banzai cluster service expiry update --file - <<EOF
    {
        "spec": {
            "date": "2022-01-22T09:06:34Z"
        }
    }
    EOF
    

Current expiration date of a cluster 🔗︎

You can always retrieve the current configuration of the Expiration integrated service with the following command:

% banzai cluster service expiry