Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://pastebin.com/SWzsX2Zd
- Subscription: FastStart-DevOps
- 1- Criar um para ssh
- https://portal.azure.com
- Conectar no Cloud Shell
- ssh-keygen -t rsa -b 2048
- 2- Criar AZure Container Service
- New > Azure Container Services
- Name: acs-treinamento
- Resource Group: rg-treinamento-[PESSOA]
- DNS PRefix: dns-treinamento-[PESSOA]
- User: treinamento
- Client id: 2f840365-c270-474e-a359-8fc13159822c
- Client Secret: 69060600-db3c-4b1e-8334-3f4ad491e49a
- Agents: 3
- VM: D2
- 3- Criar Azure Container Registry
- Name: acr[Pessoa]
- Resource Group: rg-acr[Pessoa]
- Admin Enable
- 4- Build Aplicacao Biometria
- Clone
- https://alexde:P2ssw0rd@axisbi.visualstudio.com/DefaultCollection/FastStart/_git/FastStartRenner
- user: alexde
- pass: P2ssw0rd
- cd api-private-gateway
- mvn package
- cd target
- docker login
- docker build -t acr[Pessoa].azurecr.io/api-private-gateway .
- docker push
- 5- Subir o Docker para o Kubernetes
- No Cloud Shell
- az acs kubernetes get-credentials -n acs-treinamento -g rg-treinamento-[PESSOA]
- kubectl create secret docker-registry regsecret \
- --docker-server=acrjotz.azurecr.io --docker-username=acrjotz \
- --docker-password==c=+I=N+=0DAuwEvUrlKS3=2ptrTx0+/
- kubectl run api-private-gateway --image=acrjotz.azurecr.io/api-private-gateway
- kubectl edit deployment api-private-gateway
- {Adicionar Abaxio de spec:
- ImagePullSecrets:
- - name: regsecret
- Acima de containers:} Salvar o Arquivo
- kubectl expose deployment api-private-gateway --type=LoadBalancer --port=80 --target-port=80
- kubectl get services
- https://pastebin.com/SWzsX2Zd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement