Estou tomando time out quando tento acessar a url que me é gerada pelo comando minikube service servico-aplicacao-noticia --url
.
Segue abaixo o conteúdo dos yamls:
aplicacao.yml
apiVersion: v1
kind: Pod
metadata:
name: aplicacao-noticia
spec:
containers:
- name: container-aplicacao
image: jnlucas/image-phpmysql:latest
ports:
- containerPort: 80
deployment-aplicacao.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: aplicacao-noticia-deployment
spec:
selector:
matchLabels:
name: aplicacao-noticia-pod
template:
metadata:
labels:
name: aplicacao-noticia-pod
spec:
containers:
- name: container-aplicacao
image: jnlucas/image-phpmysql:latest
ports:
- containerPort: 80
servico-aplicacao-noticia.yml
apiVersion: v1
kind: Service
metadata:
name: servico-aplicacao-noticia
spec:
type: LoadBalancer
ports:
- name: http
port: 80
selector:
name: aplicacao-noticia-pod
Tanto o pod gerenciado pelo deployment como o service estão rodando.
kubectl get pods
aplicacao-noticia-deployment-7b48c4c7d8-rkk9z 1/1 Running 0 41m
kubectl get services
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 4d1h
servico-aplicacao-noticia LoadBalancer 10.107.207.164 <pending> 8080:32653/TCP 13m
Como resolvo isso??