Skip to content

Instantly share code, notes, and snippets.

@svennam92
Created June 18, 2019 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svennam92/04f240ad64c3d2e3b961c7c6eb48ce0a to your computer and use it in GitHub Desktop.
Save svennam92/04f240ad64c3d2e3b961c7c6eb48ce0a to your computer and use it in GitHub Desktop.
Helper Commands - workshop
export INGRESS_HOST=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].port}')
export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
kubectl get gateway bookinfo-gateway -o yaml
kubectl get virtualservice bookinfo -o yaml
kubectl describe destinationrules
kubectl get svc -n istio-system
ibmcloud ks nlb-dns-create --cluster adp-1 --ip <YOUR_IP>
ibmcloud ks nlb-dnss --cluster adp-1
open http://$GATEWAY_URL/productpage
for i in `seq 1 100`; do curl -s -o /dev/null http://$GATEWAY_URL/productpage; done
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 &
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=kiali -o jsonpath='{.items[0].metadata.name}') 20001:20001 &
kubectl edit cm config-domain --namespace knative-serving
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment