Open topic with navigation

# Configuring the Kubernetes Client (`kubectl`)

Several Kubernetes configuration and diagnostic tasks using `kubectl` will be performed on the bastion. In order to do that, the `kubectl` utility needs be configured with bastion credentials.

To configure `kubectl`:

1. Connect to the bastion instance and run the following command:

       aws eks update-kubeconfig --name <Cluster Name>

   The command will return an updated context <eks cluster arn> in `/home/centos/.kube/config`

       Output example:
       aws eks update-kubeconfig --name srgdemo-cluster

   `Updated context:``arn:aws:eks:eu-central-1:115370811111:cluster/srgdemo-cluster` in `/home/centos/.kube/config`

1. On the bastion, check the Kubernetes service status by running:

       kubectl get svc

       Output example:

       NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
       kubernetes   ClusterIP   172.20.0.1   <none>        443/TCP   54m

   The EKS control plane is now ready and accessible from the bastion.

   Next Step: Applying the AWS Config Map