Enhanced OpenShift CLI: More Stories

Organize Cluster Contexts Hierarchically

$ oc login -s https://api.foo.example.com -c dev-env/cluster-foo
$ oc login -s https://api.bar.example.com -c dev-env/cluster-bar
$ oc login -s https://api.baz.example.com -c dev-env/cluster-baz
$ gopass ls
gopass
└── dev-env
├── cluster-foo
├── cluster-bar
└── cluster-baz
$ oc login -c dev-env/cluster-foo
$ oc login -c dev-env/cluster-bar
$ oc login -c dev-env/cluster-baz

Choose Among Multiple Clusters

$ oc login -c dev
1) dev-env/cluster-bar
2) dev-env/cluster-baz
3) dev-env/cluster-foo
#? 1
Read context 'dev-env/cluster-bar' from secret store...
Context loaded successfully.
Login successful.
You have access to 59 projects, the list has been suppressed. You can list all projects with 'oc projects'Using project "default".

Fuzzy Search

Customize Shell Prompt

Summary

--

--

--

Life is coding and writing! I am a software engineer who have been in IT field for 10+ years. I would love to write beautiful code and story for people.

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

Recommended from Medium

Making Your Business as Light as a Cloud. How to Develop a SaaS Application

Creating a Quantum Circuit to Simulate Rolling a Die, Part2

Pinned Posts

Things You Should Know Before Starting DynamoDB

App Indexing & Deep Linking Guide

Adding Facebook Authentication to a Laravel Website

How to Install WSL for Windows 10

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
MorningSpace

MorningSpace

Life is coding and writing! I am a software engineer who have been in IT field for 10+ years. I would love to write beautiful code and story for people.

More from Medium

Kubernetes Resource Setting in a local K3D Cluster

HashiCorp Vault — Authentication Options

How to Size a memory-backed Kubernetes emptyDir Volume

Cert-manager additional certificate output formats config through helm