# EKS Freetier

## Manipulate VM image of node group 

```
# freeze node group with the image being used currently
> ./nodegroup.sh --action freeze --env dev

# update to the latest image according to the k8s version
> ./nodegroup.sh --action upgrade --env dev
```

## Create o11y CRs and manage vmagent workloads

```bash
# default dry-run:
# 1) stop logging-serverless/o11y-vectoragent
# 2) set monitoring-serverless vmagent CR spec.replicaCount=0 and wait until status.replicas=0, then scale o11y-victoria-metrics-operator deployment to 0
# 3) apply kubernetesagent/sharedpoolagent templates from ConfigMap
../../hack/create-o11y-crs.sh

# execute for real
../../hack/create-o11y-crs.sh --execute

# rollback: delete kubernetesagent/sharedpoolagent and resume previously stopped resources from annotations
../../hack/create-o11y-crs.sh --rollback --execute
```
