Programmatically update an environment variable in a DeploymentConfig

A DeploymentConfig in OpenShift is a REST object that defines the template for a pod and manages deploying new images or configuration changes. It can be POSTed to the API server to create a new instance. A single deployment configuration is usually analogous to a single micro-service. A DeploymentConfig (DC) in OpenShift is more or less equivalent to a Kubernetes Deployment. The main difference is that there are a few things you can do with a DeploymentConfig (around triggers) that you can’t do with a Deployment....

May 15, 2023 · 2 min

Automatically restart port-forwarding in Kubernetes or OpenShift

When you set up a port-forward to a Kubernetes or OpenShift pod, the connection will disconnect automatically with the message “lost connection to pod” when the pod completes or you reach the port-forward time limit. It could be a few minutes or a few hours. The automatic disconnection is a useful feature for security and to save resources, but the closed connection will interrupt your flow of thought and force you to restart port forwarding....

May 15, 2023 · 3 min