Lab Infrastructure

Infrastructure

Verified cluster access details for OpenShift and RKE2.

Infrastructure

Last verified: 2026-05-07 from ze@dl385.

Jump Host

Cluster access goes through dl385. Treat dl385 as the required jump host for OpenShift and RKE2 operations.

ssh ze@dl385

The host has both Kubernetes CLIs installed:

ToolPathVerified version/access
oc/usr/local/bin/ocOpenShift client 4.20.18
kubectl/usr/local/bin/kubectlVerified against RKE2 clusters

Run oc and kubectl commands from dl385. Kubeconfig files are stored on dl385 under:

~/.kube/configs/<cluster>.kubeconfig

Do not copy kubeconfig contents, tokens, or client certificates into this repository.

OpenShift Clusters

Use ocpctx <cluster> on dl385 to select an OpenShift kubeconfig for the current shell, then use oc.

ClusterKubeconfigAPI serverVerified userAPI ready
hub-dc~/.kube/configs/hub-dc.kubeconfighttps://api.hub-dc.ocp.comptech-lab.com:6443system:adminok
hub-dr~/.kube/configs/hub-dr.kubeconfighttps://api.hub-dr.ocp.comptech-lab.com:6443system:adminok
spoke-dc~/.kube/configs/spoke-dc.kubeconfighttps://api.spoke-dc.ocp.comptech-lab.com:6443system:adminok
spoke-dr~/.kube/configs/spoke-dr.kubeconfighttps://api.spoke-dr.ocp.comptech-lab.com:6443system:adminok

Example:

ocpctx hub-dc
oc whoami
oc whoami --show-server
oc get --raw=/readyz
oc project

Available OpenShift aliases:

hub-dc hub-dr spoke-dc spoke-dr

RKE2 Clusters

Use kubectl with the kubeconfig file directly, or export KUBECONFIG for the current shell.

ClusterKubeconfigAPI serverContextAPI readyAccess check
rke2~/.kube/configs/rke2.kubeconfighttps://30.30.30.2:6443rke2okkubectl auth can-i get pods -A = yes
rke2-dr~/.kube/configs/rke2-dr.kubeconfighttps://30.30.31.1:6443defaultokkubectl auth can-i get pods -A = yes

Examples:

kubectl --kubeconfig ~/.kube/configs/rke2.kubeconfig get --raw=/readyz
kubectl --kubeconfig ~/.kube/configs/rke2.kubeconfig get nodes

Or:

export KUBECONFIG=~/.kube/configs/rke2.kubeconfig
kubectl config current-context
kubectl get pods -A

Available RKE2 aliases:

rke2 rke2-dr

Context Helper

ocpctx is defined on dl385 as a shell function. With no arguments, it shows the current KUBECONFIG and available kubeconfigs. With a cluster alias, it exports KUBECONFIG for the current shell.

ocpctx
ocpctx hub-dc

To clear the selected context:

unset KUBECONFIG