Describe portal-noticias-deployment - eu removi os endereços de ip dessa descrição, mas estão preenchidos nos campos Node: minikube/(está com o meu Internal IP) e o de Status: IP.
jackson@ubuntu:~/kubernetes-alura$ kubectl describe pod portal-noticias-deployment
Name: portal-noticias-deployment-5876ffc4f6-pmjdw
Namespace: default
Priority: 0
Node: minikube/
Start Time: Thu, 03 Sep 2020 18:44:42 -0300
Labels: app=portal-noticias
pod-template-hash=5876ffc4f6
Annotations: <none>
Status: Running
IP:
IPs:
IP:
Controlled By: ReplicaSet/portal-noticias-deployment-5876ffc4f6
Containers:
portal-noticias-container:
Container ID: docker://d715bb63a5b5241da10d0bd2410d01d94d5c181aacaa292bfc092e6
fbd1783c5
Image: aluracursos/portal-noticias:1
Image ID: docker-pullable://aluracursos/portal-noticias@sha256:c1f4e01ee56e948ea9b420ded272d3440b9d45afb5d7ba1c389e79487edfeec0
Port: 80/TCP
Host Port: 0/TCP
State: Running
Started: Thu, 03 Sep 2020 18:44:59 -0300
Ready: True
Restart Count: 0
Requests:
cpu: 10m
Liveness: http-get http://:80/ delay=20s timeout=1s period=10s #success=1 #failure=3
Readiness: http-get http://:80/ delay=3s timeout=1s period=10s #success=1 #failure=5
Environment Variables from:
portal-configmap ConfigMap Optional: false
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-nf5xw (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
default-token-nf5xw:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-nf5xw
Optional: false
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 14m default-scheduler Successfully assigned default/portal-noticias-deployment-5876ffc4f6-pmjdw to minikube
Warning Failed 14m (x3 over 14m) kubelet, minikube Error: configmap "portal-configmap" not found
Normal Pulled 14m (x4 over 14m) kubelet, minikube Container image "aluracursos/portal-noticias:1" already present on machine
Normal Created 14m kubelet, minikube Created container portal-noticias-container
Normal Started 14m kubelet, minikube Started container portal-noticias-container
*Eu já deletei e criei novamente o o arquivo yaml portal-configmap, portal-noticias-deployment.yaml e o svc-portal-noticias.yaml, mas não resolveu.
portal-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: portal-configmap
data:
IP_SISTEMA: 111.167.12.8:30001
Eu deixei um número fictício aqui, mas a variável IP_SISTEMA: está com o meu INTERNAL_IP:30001, a única vez que funcionou e exibiu na página do portal as informações que eu cadastrei foi quando eu troquei o INTERNAL_IP pelo IP da minha máquina. Você pode me ajudar Daniel?