Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1.  
  2. https://pastebin.com/SWzsX2Zd
  3.  
  4. Subscription: FastStart-DevOps
  5.  
  6. 1- Criar um para ssh
  7. https://portal.azure.com
  8. Conectar no Cloud Shell
  9. ssh-keygen -t rsa -b 2048
  10.  
  11. 2- Criar AZure Container Service
  12. New > Azure Container Services
  13. Name: acs-treinamento
  14. Resource Group: rg-treinamento-[PESSOA]
  15. DNS PRefix: dns-treinamento-[PESSOA]
  16. User: treinamento
  17. Client id: 2f840365-c270-474e-a359-8fc13159822c
  18. Client Secret: 69060600-db3c-4b1e-8334-3f4ad491e49a
  19. Agents: 3
  20. VM: D2
  21.  
  22. 3- Criar Azure Container Registry
  23. Name: acr[Pessoa]
  24. Resource Group: rg-acr[Pessoa]
  25. Admin Enable
  26.  
  27. 4- Build Aplicacao Biometria
  28.  
  29. Clone
  30. https://alexde:P2ssw0rd@axisbi.visualstudio.com/DefaultCollection/FastStart/_git/FastStartRenner
  31. user: alexde
  32. pass: P2ssw0rd
  33.  
  34. cd api-private-gateway
  35. mvn package
  36. cd target
  37. docker login
  38. docker build -t acr[Pessoa].azurecr.io/api-private-gateway .
  39. docker push
  40.  
  41.  
  42. 5- Subir o Docker para o Kubernetes
  43. No Cloud Shell
  44.  
  45.  
  46. az acs kubernetes get-credentials -n acs-treinamento -g rg-treinamento-[PESSOA]
  47.  
  48. kubectl create secret docker-registry regsecret \
  49. --docker-server=acrjotz.azurecr.io --docker-username=acrjotz \
  50. --docker-password==c=+I=N+=0DAuwEvUrlKS3=2ptrTx0+/
  51.  
  52. kubectl run api-private-gateway --image=acrjotz.azurecr.io/api-private-gateway
  53. kubectl edit deployment api-private-gateway
  54. {Adicionar Abaxio de spec:
  55.  
  56. ImagePullSecrets:
  57. - name: regsecret
  58.  
  59. Acima de containers:} Salvar o Arquivo
  60.  
  61. kubectl expose deployment api-private-gateway --type=LoadBalancer --port=80 --target-port=80
  62. kubectl get services
  63.  
  64.  
  65.  
  66. https://pastebin.com/SWzsX2Zd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement