DEV Community

Cover image for My Shortcut / Alias to Use Civo Kubernetes
Seski Ramadhan
Seski Ramadhan

Posted on

My Shortcut / Alias to Use Civo Kubernetes

Hi gangs, today I will share about my alias setup for Civo Cloud.

alias civo_create="civo kubernetes create kube-demo --wait && rm ~/.kube/config && civo kubernetes config kube-demo --save"
Enter fullscreen mode Exit fullscreen mode

This first alias is for provision new kubernetes cluster(kube-demo) with basic configuration, and I also remove kube config file for easily replace new config with the new one.

alias civo_remove="civo kubernetes remove kube-demo"
Enter fullscreen mode Exit fullscreen mode

This alias is for removing cluster when I finish my learning / project. Let's we try this alias

civo_create
Enter fullscreen mode Exit fullscreen mode

Image description
As you can see, I just issue command civo_create and cluster created in just 1 minute 58 sec, How cool is that!

Now Let's remove our cluster

civo_remove
Enter fullscreen mode Exit fullscreen mode

Image description
Just like that, then we say good bye to our cluster :)

Top comments (0)