Created
October 4, 2016 13:07
-
-
Save mjudeikis/8ea7df57ae4fb3b7d0dfdd781b8d8c48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All my containers with oc cluster up cant reach outside | |
##### Version | |
oc v1.3.0 | |
kubernetes v1.3.0+52492b4 | |
features: Basic-Auth GSSAPI Kerberos SPNEGO | |
Server https://192.168.5.2:8443 | |
openshift v1.3.0 | |
kubernetes v1.3.0+52492b4 | |
##### Steps To Reproduce | |
1. oc cluster up (all binds fine) | |
2. setup container | |
` oc import-image debug --from=mangirdas/docker-debug-container --confirm | |
oc new-app --image-stream=debug` | |
3. rsh to container: | |
``` | |
dig github.com @172.30.0.1 | |
; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> github.com @172.30.0.1 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54250 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 | |
;; OPT PSEUDOSECTION: | |
; EDNS: version: 0, flags:; udp: 4096 | |
;; QUESTION SECTION: | |
;github.com. IN A | |
;; ANSWER SECTION: | |
github.com. 2 IN A 192.30.253.112 | |
;; Query time: 17 msec | |
;; SERVER: 172.30.0.1#53(172.30.0.1) | |
;; WHEN: Tue Oct 04 13:03:51 UTC 2016 | |
;; MSG SIZE rcvd: 55 | |
sh-4.2$ dig github.com | |
; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> github.com | |
;; global options: +cmd | |
;; connection timed out; no servers could be reached | |
``` | |
in the container: | |
``` | |
cat /etc/resolv.conf | |
search jenkins.svc.cluster.local svc.cluster.local cluster.local | |
nameserver 192.168.5.2 (my laptop IP) | |
options ndots:5 | |
``` | |
ports on laptop ports: | |
``` | |
sudo ss -ntpl | |
[sudo] password for mangis: | |
State Recv-Q Send-Q Local Address:Port Peer Address:Port | |
LISTEN 0 128 192.168.5.2:53 *:* users:(("openshift",pid=26676,fd=419)) | |
LISTEN 0 128 *:8053 *:* users:(("openshift",pid=26676,fd=220)) | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment