1
0
mirror of https://github.com/rancher/os.git synced 2025-09-12 13:17:17 +00:00
Files
os/opensuse/files/etc/bash.bashrc.local
2021-10-02 22:27:31 -07:00

21 lines
655 B
Plaintext

if [ -z "$KUBECONFIG" ]; then
if [ -e /etc/rancher/rke2 ]; then
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
fi
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
fi
if [ -d /var/lib/rancher/rke2/bin ]; then
export PATH="${PATH}:/var/lib/rancher/rke2/bin"
fi
if [ -z "$CONTAINER_RUNTIME_ENDPOINT" ]; then
export CONTAINER_RUNTIME_ENDPOINT=unix:///var/run/k3s/containerd/containerd.sock
fi
if [ -z "$IMAGE_SERVICE_ENDPOINT" ]; then
export IMAGE_SERVICE_ENDPOINT=unix:///var/run/k3s/containerd/containerd.sock
fi
# For ctr
if [ -z "$CONTAINERD_ADDRESS" ]; then
export CONTAINERD_ADDRESS=/run/k3s/containerd/containerd.sock
fi