- According to the example.csv file, you can make replicas and resource-related adjustments to a container resource of the deploy/sts type.
- If the current resource is less than the changed resource, it will be marked green; if the current resource is greater than the changed resource, it will be marked red.
- Note that to obtain service quality by default, the app label needs to be standardized, that is, app=workload name.
- Only need to be sorted into example.csv, as shown below.
workload,containers_name,worktype,namespace,replicas,limits_cpu,limits_memory,requests_cpu,requests_memory
hotrod,hotrod,deployment,sample-application,1,100m,256Mi,100m,256Mi
locust-master,locust-master,deployment,sample-application,2,400m,512Mi,400m,512Mi
locust-worker,locust-worker,deployment,sample-application,2,300m,215Mi,300m,215Mi
- Execute alter resource changes.
./bin/cops -a /root/.kube/config ./example.csv