Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uffizzi cluster sleep / wake #339

Closed
gadkins opened this issue Sep 25, 2023 · 2 comments · Fixed by #350
Closed

uffizzi cluster sleep / wake #339

gadkins opened this issue Sep 25, 2023 · 2 comments · Fixed by #350

Comments

@gadkins
Copy link
Member

gadkins commented Sep 25, 2023

Add CLI subcommands:

  • uffizzi cluster sleep
  • uffizzi cluster wake

Usage

  • (Default) Target cluster is the current kubeconfig context uffizzi cluster sleep
  • (Optional) Target cluster is <name> - uffizzi cluster sleep my-cluster

Help page (sleep)

$ uffizzi cluster sleep -h
uffizzi-cluster-sleep - put a cluster to sleep (non-destructive)
================================================================

## SYNOPSIS
    uffizzi cluster sleep [CLUSTER_NAME]

## DESCRIPTION
    Scales a Uffizzi cluster down to zero resource utilization 
    while keeping the namespace and any stateful resources,
    like persistent volume claims. If no CLUSTER_NAME is 
    specified, the kubeconfig current context is used.

    For more information on Uffizzi clusters, see:
    https://docs.uffizzi.com/references/cli/

## OPTIONS
    CLUSTER_NAME
    The name of the target Uffizzi cluster

## EXAMPLES
    To put the Uffizzi cluster in the current context to 
    sleep, run:

        $ uffizzi cluster sleep

    To put a Uffizzi cluster outside the current context to 
    sleep, run:

        $ uffizzi cluster sleep my-cluster
@gadkins
Copy link
Member Author

gadkins commented Sep 25, 2023

Help page (wake)

$ uffizzi cluster wake -h
uffizzi-cluster-wake - wake a cluster that is sleeping
================================================================

## SYNOPSIS
    uffizzi cluster wake [CLUSTER_NAME]

## DESCRIPTION
    Scales up a Uffizzi cluster to its original resource 
    utilization from zero (see 'uffizzi cluster sleep -h'). 
    If no CLUSTER_NAME is specified, the kubeconfig current 
    context is used.

    For more information on Uffizzi clusters, see:
    https://docs.uffizzi.com/references/cli/

## OPTIONS
    CLUSTER_NAME
    The name of the target Uffizzi cluster

## EXAMPLES
    To wake the Uffizzi cluster in the current context, run:

        $ uffizzi cluster wake

    To wake a Uffizzi cluster outside the current context, run:

        $ uffizzi cluster wake my-cluster

@ALEXANCHESSS
Copy link

ALEXANCHESSS commented Oct 9, 2023

@moklidia

  • After creating a cluster, the response to the "sleep" command returns the error "Failed to scale down cluster". When entering the command a second time, "Cluster almost was successfully scaled down" is returned
image
  • Can we change the naming style of statuses on the frontend from snake_case to normal?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants