Increase timeout of OpenShift Web Terminal

Introduction

Hello World! OpenShift is an Enterprise-Grade Container Platform that is built on top of Kubernetes and comes with an extensive set of tools and services that make it super easy to build, deploy, and manage applications, part of the credit goes to OpenShift Console. Directly from OpenShift Console you can also launch a cloud shell or a web terminal

In this post i will share details on OpenShift Web Terminal an embedded command line terminal instance in the OpenShift web console. If you are familiar with public cloud providers consoles or portals, you would have noticed a shell icon in the top right corner of the console. OpenShift Web Terminal Operator enables the same functionality on OpenShift.

I will not go into the details of installing OpenShift WebTerminal, instead will recommend read these amazing blogs posts

Increasing Web Terminal Timeout

By default the web terminal pod timeout is set for 15 minutes, for all practical reasons i found it too short. I will share with you how to increase the timeout of OpenShift’s web terminal pod. Let’s go !!

  • Prerequisites : OpenShift Web Terminal Operator is installed
  • Lanuch OpenShift Web Terminal
  • Execute the following command to create DevWorkspaceOperatorConfig
cat <<EOF | oc apply -f -
apiVersion: controller.devfile.io/v1alpha1
kind: DevWorkspaceOperatorConfig
metadata:
name: devworkspace-operator-config
namespace: openshift-operators
config:
workspace:
idleTimeout: 8h
EOF

Summary

This how to increase the timeout of OpenShift’s web terminal pod. Now the web terminal pod will timeout after 8 hours. Incase the web terminal UI report disconnect don't worry, its just the UI component that was unable to establish a connection with the web terminal pod. To fix, close the web terminal and re-open it.

More Information on this topic

--

--

--

Senior Principal Architect & Developer Evangelist @ Red Hat ♦ Loves K8s, OpenShift, Cloud-Native, Serverless, Hybrid-Multi-Cloud, Distributed Systems

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Getting started with Micronaut

Text Extraction And OCR With Apache Tika

My Insightful Experience with Crio’s #IBelieveInDoing OOPs workshop

Elassandra with NodeJS Demo — Part 1: Setting up Elassandra

Print Formatting with Strings

Azure file share CIFS vs NFS

LEAVE THE HARDWARE ALONE!

Make any person dance with just 1 image! (Artificial Intelligence)

Albert Einstein doing Fortnite dances

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Karan Singh

Karan Singh

Senior Principal Architect & Developer Evangelist @ Red Hat ♦ Loves K8s, OpenShift, Cloud-Native, Serverless, Hybrid-Multi-Cloud, Distributed Systems

More from Medium

Docker & Nginx & Logs

Create GitLab Environment For Testing.

Docker Or Podman on Windows using WSL 2

Running Redis with resilience in Linux containers on Windows — Part 2

docker network informational commands