kubernetes Deployment Failed to fetch Temporary failure resolving
IF you apt-get update in k8s Deployment yaml that containers command run it. Maybe get
Deployment Failed to fetch Temporary failure resolving
So just put this line before script
- /bin/bash
- -c
- |
echo nameserver 8.8.8.8 >> /etc/resolv.conf
apt-get update
Usually you get this problem because try to transfer Dockerfile / docker-compose directory to ConfigMap and Deployment YAML. Dockerfile have apt-get update that get problem.