Skip to content

Instantly share code, notes, and snippets.

@claudioed
Last active June 10, 2020 10:21
Show Gist options
  • Save claudioed/6a99481735cbf5e96808447068242c5e to your computer and use it in GitHub Desktop.
Save claudioed/6a99481735cbf5e96808447068242c5e to your computer and use it in GitHub Desktop.

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>"
@hfornazari
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment