// Aula 18 - Endpoints vim teste-endpoints.yaml # teste-endpoints.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx ver: "2" env: prod spec: containers: - name: nginx-container image: nginx ports: - containerPort: 80 --- apiVersion: v1 kind: Service metadata: name: ingress-nginx spec: type: NodePort ports: - name: http port: 80 targetPort: 80 nodePort: 30001 protocol: TCP selector: app: nginx # kubectl apply -f teste-endpoints.yaml # kubectl describe endpoints ingress-nginx # kubectl get endpoints ingress-nginx --watch # kubectl delete deployment nginx-deployment # kubectl apply -f teste-endpoints.yaml # kubectl get pods -o wide --show-labels # kubectl get pods -o wide --show-labels --selector=ver=2