Fiz o processo do db-noticias, sistema-configmap e sistema-noticias, atualizando, criando e deletando, respectivamente. Tentei acessar, porem, ocorreu erro. Abaixo seguem configuracoes, e prints dos "erros".
# sistema-noticias
apiVersion: v1
kind: Pod
metadata:
name: sistema-noticias
labels:
app: sistema-noticias
spec:
containers:
- name: container-sistema-noticias
image: aluracursos/sistema-noticias:1
ports:
- containerPort: 80
envFrom:
- configMapRef:
name: sistema-configmap
# sistema-configmap
apiVersion: v1
kind: ConfigMap
metadata:
name: sistema-configmap
data:
HOST_DB: svc-db-noticias:3306
USER_DB: root
PASS_DB: q1w2e3r4
DATABASE_DB: empresa
#db-noticias
apiVersion: v1
kind: Pod
metadata:
name: db-noticias
labels:
app: db-noticias
spec:
containers:
- name: container-db-noticias
image: aluracursos/mysql-db:1
ports:
- containerPort: 3306
envFrom:
- configMapRef:
name: db-configmap
Servicos
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
svc-db-noticias ClusterIP 10.108.112.151 <none> 3306/TCP 7d app=db-noticas
svc-sistema-noticias NodePort 10.99.44.63 <none> 80:30001/TCP 7d1h app=sistema-noticias
Node
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
minikube Ready control-plane 31d v1.26.1 192.168.59.100 <none> Buildroot 2021.02.12 5.10.57 docker://20.10.23
Erro - Nao atualizou
Erro - Logar