Appearance
Kubectl Administration
This administration guide lists kubectl
commands that can be used to manage Yellowbrick instances. All of these commands utilize the YBInstance CRD which is installed and managed by the Yellowbrick Operator.
Given that you know:
- The namespace where your instance is installed
$instanceNamespace
- The name of your instance
$instanceName
the following activities can be performed:
Suspend an Instance
kubectl -n $instanceNamespace patch ybinstance/$instanceName --type=merge -p '{"spec":{"requestedState":"Suspended"}}'
Resume an Instance
kubectl -n $instanceNamespace patch ybinstance/$instanceName --type=merge -p '{"spec":{"requestedState":"Running"}}'
Restart an Instance
kubectl -n $instanceNamespace patch ybinstance/$instanceName --type=merge -p '{"spec":{"requestedState":"Restart"}}'
Upgrade an Instance (or downgrade)
kubectl -n $instanceNamespace patch ybinstance/$instanceName --type=merge -p '{"spec":{"version":"{{ VERSION }}"}}'
Change an Instance to Scaled Shared Services
kubectl -n $instanceNamespace patch ybinstance/$instanceName --type=merge -p '{"spec":{"sharedServicesType":"scaled"}}'
Change an Instance to Standard Shared Services
kubectl -n $instanceNamespace patch ybinstance/$instanceName --type=merge -p '{"spec":{"sharedServicesType":"standard"}}'