If the EKS cluster is connected through the Agent
To change the connection type from read/write to read-only when an agent is connected, you need to remove the agent from the cluster. To do this, you can use the command.
kubectl delete -f https://uniskai-eu-templates.s3.eu-central-1.amazonaws.com/kubernetes-agent/deployment.yaml
Refresh your account on the platform.
The state is changed to read-only.
If the EKS cluster is connected through the API
Open aws-auth map configuration for modification in kube-system namespace
Delete the
uniskai-modifier-group
group or the entire record (for complete disabling) with the cluster role from the mapRoles/mapUsers blockRefresh your account on the platform.
The state is changed to read-only.