Authorize gcloud to access the Cloud Platform with Google user credentials $ gcloud auth login Configure kubectl tool $ gcloud container clusters get-credentials kubeernetes --zone us-central1-a --project camel-knative Download Project git clone https://bitbucket.org/sensedia/kubeernetes.git Images claudioed/championships:latest claudioed/matches:latest claudioed/players:latest claudioed/bets:latest Request Example $ curl -X POST localhost:9999/api/bets -H 'Content-Type: application/json' \ -d '{ "match": "1X-DC", "email": "[email protected]", "championship": "Uefa Champions League", "awayTeamScore": "2", "homeTeamScore": "3" }' data: MATCH_SVC: "http://matches:9999/api/matches/<ID>" CHAMPIONSHIP_SVC: "http://championships:9999/api/championships/<ID>" PLAYER_SVC: "http://players:9999/api/players/<ID>"
Port Forwarding
Uso de port foward para desviar o fluxo para maquina local , deve ser realizado
kubectl port-forward svc/bets -n heverton 9999:9999