CX Cloud Docs
v3.0-docs
v3.0-docs
  • Welcome To CX Cloud
  • Introduction
    • Why CX Cloud?
    • Architecture Overview
    • How To Participate?
    • Change Log
  • Getting Started
    • Requirements
      • Prepare Local Environment
      • Install CX Cloud CLI
    • Setting up a CX Cloud Project
      • Provision Infrastructure
      • Generating Core Services
      • Generating a Frontend Demo
      • Configuring Routing Manifest
      • Configuring CI/CD Pipeline
      • Configuring Data Engine
  • Guides
    • Infrastructure Operations
      • Getting Access To An Already Running Infrastructure
      • Deleting Deployments
      • Managing Secrets
    • Application Development
      • Git Repository Conventions
      • Process Engine
Powered by GitBook
On this page
  1. Guides
  2. Infrastructure Operations

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:

$ export AWS_PROFILE=my-cxcloud-dev

Now run the following script to download the configuration from the running cluster to your system:

$ kops export kubecfg somecluster.k8s.local --state=s3://somecluster.k8s.local

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:

$ kubectl config get-contexts

This command will print a list of configured contexts on your system and the currently in use context.

To switch between contexts, run:

$ kubectl config use-context mycluster.k8s.local
PreviousInfrastructure OperationsNextDeleting Deployments

Last updated 5 years ago