Getting Access To An Already Running Infrastructure
In most real world cases, you haven't probably generated and set up the Kubernetes infrastructure yourself. But you might need to access it to deploy services or change settings.
To do that, you should have access to the AWS account that the infrastructure is running in, and export the AWS_PROFILE
variable like before:
Now run the following script to download the configuration from the running cluster to your system:
This command will download the configuration to your system and sets up a Kubernetes context
for easier use. Now you can run any kubectl
or cxcloud
command to interact with your cluster.
Kubernetes Contexts
In case you have access to more than one Kubernetes cluster, you can use kubectl config
tool and switch between different contexts.
To see a list of your available contexts run:
This command will print a list of configured contexts on your system and the currently in use context.
To switch between contexts, run:
Last updated