2019-02-26 00:21:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e -x
|
|
|
|
|
|
|
|
while [ ! -e /etc/rancher/k3s/k3s.yaml ]; do
|
|
|
|
echo waiting for config
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p /root/.kube
|
|
|
|
sed 's/localhost/server/g' /etc/rancher/k3s/k3s.yaml > /root/.kube/config
|
|
|
|
export KUBECONFIG=/root/.kube/config
|
|
|
|
cat /etc/rancher/k3s/k3s.yaml
|
|
|
|
cat $KUBECONFIG
|
2023-02-06 19:25:24 +00:00
|
|
|
sonobuoy run --sonobuoy-image=rancher/mirrored-sonobuoy-sonobuoy:v0.56.14
|
2019-02-26 00:21:48 +00:00
|
|
|
sleep 15
|
|
|
|
sonobuoy logs -f
|