Passos…
Passos
1 - Cria o arquivo yml com os dados do projeto: consultar ===> admin.yml
2 - Pega no provedor o arquivo kubeconfig com a configuração de acesso ao Cluster: no projeto admin está no arquivo kubeconfig.yml
3 - copia, do admin (por exemplo):
3.1 - A configuração do nginx para o projeto: nginx-custom.conf
3.2 - a lista de pastas que não irão para o container: .dockerignore
3.3 - a lista de comandos para criação da imagem no docker: Dockerfile
1 - Cria a imagem no docker:
docker build -t gerinus/zagil:v1
2 - Sobe a imagem para o Docker hub
docker push zagil
3 - Define o arquivo de configuração do Kube:
SET KUBECONFIG=D:\Desenvolvimento\Asap\zagil\kubeconfig.yml
4 - Aplica o Projeto:
kubectl apply -f zagil.yaml
List the pods
You have just deployed a in a pod in your worker node. Let’s verify that
everything is correct by listing the pods.
kubectl -n=default get pods
List the deployments
You can also verify the deployment is active:
kubectl -n=default get deploy
List the services
And now you’re going to use kubectl to see your service:
kubectl -n=default get services
http://www.cienciaedados.com/kubernetes-pods-nodes-containers-e-clusters/
https://www.linode.com/docs/applications/containers/kubernetes/deploy-container-image-to-kubernetes/
https://medium.com/marcosmota287/rodando-aplica%C3%A7%C3%A3o-angular-com-docker-e-nginx-9c28e7a99f4
https://docs.ovh.com/gb/en/kubernetes/configuring-kubectl/
https://docs.ovh.com/gb/en/kubernetes/deploying-an-application/