fix for logging for now
@@ -115,8 +115,6 @@ kubectl exec vault-0 -- vault write auth/kubernetes/role/secret-challenge \
echo "Deploy secret challenge app"
kubectl apply -f k8s/secret-challenge-vault-deployment.yml
while [[ $(kubectl get pods -l app=secret-challenge -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "waiting for secret-challenge" && sleep 2; done
-echo "logs from pod to make sure:"
-kubectl logs -l app=secret-challenge
kubectl expose deployment secret-challenge --type=LoadBalancer --port=8080
kubectl port-forward \
$(kubectl get pod -l app=secret-challenge -o jsonpath="{.items[0].metadata.name}") \
@@ -126,3 +124,5 @@ echo "Do minikube delete to stop minikube from running and cleanup to start fres
echo "wait 20 seconds so we can check if vault-k8s-container works"
sleep 20
curl http://localhost:8080/spoil-7
+echo "logs from pod to make sure:"
+kubectl logs -l app=secret-challenge
