Welcome to the Linux Foundation Forum!

apt update (in kubernetes pod): temporary failure

iracic Posts: 7
edited December 2020 in LFS258 Class Forum


Kubernets installed manually on AWS. All worked fine until nettools exercise.

Pod works, but "apt update" command does not work:

kubectl exec -it nettool -- apt update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archive.ubuntu.com'

If I use directly Docker, it works correctly:

sudo docker run -it ubuntu:latest apt update

I have checked firewall on instance and VPC settings and was unable to find the root cause of the error.

Can you help with this issue ?

Thank you,


  • Hi @iracic,

    This behavior has been encountered when running Kubernetes on AWS.
    In an earlier post a solution was presented to add Google DNS in the nettool.yaml file when working on AWS.


  • iracic
    iracic Posts: 7
    edited December 2020

    Hi Chris,

    That fixed the issue.

    Thank you,


Upcoming Training