Skip to main content

Managing a Kubernetes context

Within Kubernetes, a context is useful to:

  • Manage multiple development, testing, and production environments.
  • Simplify your interaction when working with multiple clusters and namespaces.

You can edit or duplicate a context using the UI. This helps in defining contexts with different configurations within your Kubernetes configuration file. Having contexts with different configurations enables easy switching between environments during development.

Prerequisites

Procedure: Edit a context

  1. Go to the Settings > Kubernetes page.
  2. Click the Edit Context icon. The Edit Context popup window opens. edit context icon
  3. Optional: Edit the name of the context.
  4. Enter a namespace, such as testing or production, for the context. edit context window
  5. Click Save.

Procedure: Duplicate a context

  1. Go to the Settings > Kubernetes page.
  2. Click the Duplicate Context icon.

Verification

  • Edit a context: View the updated context details on the same page. updated context details
  • Duplicate a context: View the duplicated context on the same page.

Additional resources