flix-tech / vagrant-kubernetes

A simple Kubernetes all-in-one box for development based on Debian Jessie
https://atlas.hashicorp.com/flixtech/boxes/kubernetes
Apache License 2.0
61 stars 23 forks source link

How can I reach the service from my physical host? #10

Open WillCup opened 6 years ago

WillCup commented 6 years ago

Confused.....

Here is the network in my physical host?

`ocker0 Link encap:以太网 硬件地址 02:42:03:98:94:5a
inet 地址:172.17.0.1 广播:0.0.0.0 掩码:255.255.0.0 UP BROADCAST MULTICAST MTU:1500 跃点数:1 接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:0 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:0 接收字节:0 (0.0 B) 发送字节:0 (0.0 B)

eth0 Link encap:以太网 硬件地址 00:e0:4b:18:1c:c2
UP BROADCAST MULTICAST MTU:1500 跃点数:1 接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:0 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:1000 接收字节:0 (0.0 B) 发送字节:0 (0.0 B)

lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0 inet6 地址: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 跃点数:1 接收数据包:26484 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:26484 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:1 接收字节:32846637 (32.8 MB) 发送字节:32846637 (32.8 MB)

vboxnet0 Link encap:以太网 硬件地址 0a:00:27:00:00:00
inet 地址:192.168.99.1 广播:192.168.99.255 掩码:255.255.255.0 inet6 地址: fe80::800:27ff:fe00:0/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 跃点数:1 接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:142 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:1000 接收字节:0 (0.0 B) 发送字节:23442 (23.4 KB)

vboxnet2 Link encap:以太网 硬件地址 0a:00:27:00:00:02
inet 地址:10.10.0.1 广播:10.10.0.255 掩码:255.255.255.0 inet6 地址: fe80::800:27ff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1 接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:152 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:1000 接收字节:0 (0.0 B) 发送字节:22744 (22.7 KB)

wlan0 Link encap:以太网 硬件地址 30:b4:9e:49:58:55
inet 地址:192.168.1.109 广播:192.168.1.255 掩码:255.255.255.0 inet6 地址: fe80::32b4:9eff:fe49:5855/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1 接收数据包:79563 错误:0 丢弃:2527 过载:0 帧数:0 发送数据包:57004 错误:0 丢弃:3 过载:0 载波:0 碰撞:0 发送队列长度:1000 接收字节:103431302 (103.4 MB) 发送字节:7057621 (7.0 MB) `

I could telnet 10.10.0.2 8080, but cannot curl 10.10.0.2:8080. Why?

liubin commented 6 years ago

What's your curl -v 10.10.0.2:8080 return?