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:
| Tool | Path | Verified version/access |
|---|---|---|
oc | /usr/local/bin/oc | OpenShift client 4.20.18 |
kubectl | /usr/local/bin/kubectl | Verified 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.
| Cluster | Kubeconfig | API server | Verified user | API ready |
|---|---|---|---|---|
hub-dc | ~/.kube/configs/hub-dc.kubeconfig | https://api.hub-dc.ocp.comptech-lab.com:6443 | system:admin | ok |
hub-dr | ~/.kube/configs/hub-dr.kubeconfig | https://api.hub-dr.ocp.comptech-lab.com:6443 | system:admin | ok |
spoke-dc | ~/.kube/configs/spoke-dc.kubeconfig | https://api.spoke-dc.ocp.comptech-lab.com:6443 | system:admin | ok |
spoke-dr | ~/.kube/configs/spoke-dr.kubeconfig | https://api.spoke-dr.ocp.comptech-lab.com:6443 | system:admin | ok |
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.
| Cluster | Kubeconfig | API server | Context | API ready | Access check |
|---|---|---|---|---|---|
rke2 | ~/.kube/configs/rke2.kubeconfig | https://30.30.30.2:6443 | rke2 | ok | kubectl auth can-i get pods -A = yes |
rke2-dr | ~/.kube/configs/rke2-dr.kubeconfig | https://30.30.31.1:6443 | default | ok | kubectl 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