Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
demo: Fixes (#1627)
Browse files Browse the repository at this point in the history
  • Loading branch information
draychev authored Oct 9, 2020
1 parent 5975f2a commit 10a8cc3
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion demo/deploy-smi-policies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ metadata:
namespace: $K8S_NAMESPACE
data:
permissive_traffic_policy_mode: false
permissive_traffic_policy_mode: "false"
EOF
6 changes: 5 additions & 1 deletion demo/reset-counters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ curl -I -X GET http://localhost:8081/reset &
curl -I -X GET http://localhost:8082/reset &
curl -I -X GET http://localhost:8083/reset &

wait
# Restart these pods to reset their data stores.
kubectl rollout restart deployment -n osm-system jaeger &
kubectl rollout restart deployment -n osm-system osm-grafana &
kubectl rollout restart deployment -n osm-system osm-prometheus &

wait
6 changes: 3 additions & 3 deletions demo/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ set -aueo pipefail
source .env


./demo/deploy-smi-policies.sh # Add SMI policies
./demo/unjoin-namespaces.sh # Remove namespaces from OSM.
./demo/reset-counters.sh # Reset counters
./demo/deploy-smi-policies.sh # Add SMI policies
./demo/unjoin-namespaces.sh # Remove namespaces from OSM.
./demo/reset-counters.sh # Reset counters


# Restart these pods to reset their data stores.
Expand Down
2 changes: 0 additions & 2 deletions scripts/port-forward-bookbuyer-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ source .env
BOOKBUYER_LOCAL_PORT="${BOOKBUYER_LOCAL_PORT:-8080}"
POD="$(kubectl get pods --selector app=bookbuyer -n "$BOOKBUYER_NAMESPACE" --no-headers | grep 'Running' | awk '{print $1}')"

kubectl describe pod "$POD" -n "$BOOKBUYER_NAMESPACE"

kubectl port-forward "$POD" -n "$BOOKBUYER_NAMESPACE" "$BOOKBUYER_LOCAL_PORT":80
2 changes: 0 additions & 2 deletions scripts/port-forward-bookstore-ui-v1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ fi
BOOKSTOREv1_LOCAL_PORT="${BOOKSTOREv1_LOCAL_PORT:-8081}"
POD="$(kubectl get pods --selector app="$backend" -n "$BOOKSTORE_NAMESPACE" --no-headers | grep 'Running' | awk '{print $1}')"

kubectl describe pod "$POD" -n "$BOOKSTORE_NAMESPACE"

kubectl port-forward "$POD" -n "$BOOKSTORE_NAMESPACE" "$BOOKSTOREv1_LOCAL_PORT":80
2 changes: 0 additions & 2 deletions scripts/port-forward-bookstore-ui-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ fi
BOOKSTOREv2_LOCAL_PORT="${BOOKSTOREv2_LOCAL_PORT:-8082}"
POD="$(kubectl get pods --selector app="$backend" -n "$BOOKSTORE_NAMESPACE" --no-headers | grep 'Running' | awk '{print $1}')"

kubectl describe pod "$POD" -n "$BOOKSTORE_NAMESPACE"

kubectl port-forward "$POD" -n "$BOOKSTORE_NAMESPACE" "$BOOKSTOREv2_LOCAL_PORT":80
2 changes: 0 additions & 2 deletions scripts/port-forward-bookthief-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ source .env
BOOKTHIEF_LOCAL_PORT="${BOOKTHIEF_LOCAL_PORT:-8083}"
POD="$(kubectl get pods --selector app=bookthief -n "$BOOKTHIEF_NAMESPACE" --no-headers | grep 'Running' | awk '{print $1}')"

kubectl describe pod "$POD" -n "$BOOKTHIEF_NAMESPACE"

kubectl port-forward "$POD" -n "$BOOKTHIEF_NAMESPACE" "$BOOKTHIEF_LOCAL_PORT":80

0 comments on commit 10a8cc3

Please sign in to comment.