GithubHelp home page GithubHelp logo

kubernetes's Issues

Container without internet access

Hello there,

I managed to raise the 3 nodes following all the steps, the 3 nodes were networked and with internet access (Centos 7).

-192.168.0.7 kbworker02
-192.168.0.6 kbworker01
-192.168.0.9 kbmaster

But when I create some example PODS they are left in another network segment:

[kubeadmin @ kbmaster ~] $ kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
hello-8685846c57-r9cfz 1/1 Running 1 21h 192.168.139.203 kbworker02
hello-8685846c57-tfxfp 1/1 Running 1 21h 192.168.170.76 kbworker01
hello-8685846c57-zhsrn 1/1 Running 1 21h 192.168.139.205 kbworker02
nginx-deployment-cnfbb 1/1 Running 1 23h 192.168.139.201 kbworker02
nginx-deployment-plr4s 1/1 Running 1 23h 192.168.170.73 kbworker01
ubuntu 1/1 Running 1 21h 192.168.139.204 kbworker02

And when I enter the ubuntu image, I don't get ping and it won't let me install:

[kubeadmin @ kbmaster ~] $ kubectl exec -it ubuntu - sh

ls

bin boot dev etc home lib lib32 lib64 libx32 media mnt opt ​​proc root run sbin srv sys tmp usr var

ping localhost

sh: 3: ping: not found

apt update

Err:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

**apt install iputils-ping

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package iputils-ping**

which ping

Please can you help me to solve this first problem that comes my way.
Actually what I need is to be able to reach the services that run inside the containers.

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.