1
0
mirror of https://github.com/rancher/os.git synced 2025-07-20 01:49:04 +00:00
os/files/etc/bash.bashrc.local

16 lines
537 B
Plaintext
Raw Normal View History

2021-06-25 18:01:35 +00:00
if [ -z "$KUBECONFIG" ]; then
if [ -e /etc/rancher/rke2 ]; then
2021-06-06 00:31:50 +00:00
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
fi
2021-06-25 18:01:35 +00:00
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
2021-06-06 00:31:50 +00:00
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