Skip to main content
Version: ACE 5

How to edit pods

This guide explains how to connect to kubernetes cluster and edit pod configuration.

It can be used in emergency situations when it is necessary to profile pod memory consumption, or alter the settings that can be altered only by redeployment of the pod.

Prerequisites

Connect to EUA_DigPortal_Core_dev02_RG cluster as described here

Set editor for kubectl (optional)

This will open vscode when editing the pod config.

export KUBE_EDITOR="code -w"
danger

Please keep in mind that changes that are applied with edit are not overwritten when apply is used to propagate the changes afterwards. To roll back changes, use edit again and remove changes or remove deployment and then run apply to recreate configuration from the scratch.

Edit the pod config

note

Some services may be deployed as Stateful Sets

To discover available deployments in namespace, run:

kubectl get deployments --namespace dev4201-ace

For example to edit ace-designer pod configuration

kubectl edit deployment ace-designer --namespace dev4201-ace