mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
9bd101c120
* validatecluster fixes Signed-off-by: Derek Nola <derek.nola@suse.com>
17 lines
382 B
Bash
Executable File
17 lines
382 B
Bash
Executable File
#!/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
|
|
sonobuoy run --sonobuoy-image=rancher/sonobuoy-sonobuoy:v0.19.0
|
|
sleep 15
|
|
sonobuoy logs -f
|