Read-only Access in Kubernetes
Configure read-only access to your Kubernetes cluster in DuploCloud
Configuring Read-only Access in Kubernetes
Complete the following steps to configure read-only access to a Kubernetes cluster.
Save the below content as a file name
service-account-readonly-setup.yaml.
Run
kubectl apply -f service-account-readonly-setup.yaml
. This will create a new service account with read-only permission.Run
kubectl -n kube-system describe secret duplo-readonly-token
to fetch the token. This can be used in DuploCloud to import the cluster as a read-only infrastructure.With the above token, EKS server URL, and certificate-authority-data, create a
kubeconfig
as follows. The server URL and certificate-authority-data are in the cloud console under the cluster settings. The DuploCloud service account can interact with the Kubernetes cluster with read-only permissions.
Last updated