Skip to content

Commit

Permalink
The /var/lib/rancher/k3s/storage now has permissions 0701
Browse files Browse the repository at this point in the history
which prevent globbing, list the exact volume directory.
  • Loading branch information
adelton committed Sep 2, 2021
1 parent 7423bb5 commit f74df5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/run-master-in-k3s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ kubectl logs -f pod/freeipa-server &
trap "kill $! 2> /dev/null || : ; trap - EXIT" EXIT
( set +x ; while true ; do if kubectl get pod/freeipa-server | grep -q '\b1/1\b' ; then kill $! ; break ; else sleep 5 ; fi ; done )
kubectl describe pod/freeipa-server
ls -la /var/lib/rancher/k3s/storage/pvc-*
PV_DIR=$( kubectl get pvc/freeipa-data-pvc -o 'jsonpath={.spec.volumeName}_{.metadata.namespace}_{.metadata.name}' )
ls -la /var/lib/rancher/k3s/storage/$PV_DIR
IPA_SERVER_HOSTNAME=$( kubectl get -o=jsonpath='{.spec.containers[0].env[?(@.name=="IPA_SERVER_HOSTNAME")].value}' pod freeipa-server )
# echo $( kubectl get -o=jsonpath='{.spec.clusterIP}' service freeipa-server-service ) $IPA_SERVER_HOSTNAME >> /etc/hosts
if ! test -f /etc/resolv.conf.backup ; then
Expand Down

0 comments on commit f74df5d

Please sign in to comment.