website icon indicating copy to clipboard operation
website copied to clipboard

Issue with /docs/getting-started-guides/kubeadm/

Open baotingfang opened this issue 9 years ago • 3 comments

This is a sock-shop doc bug

  • [ ] Feature Request
  • [ x ] Bug Report

Problem: The sock-shop example can not run in k8s v1.5.1

just can deploy all the services and pods. but can not access by master ip

[root@kube-master ~]# kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system dummy-2088944543-lzdbx 1/1 Running 0 1h kube-system etcd-kube-master.home 1/1 Running 1 1h kube-system kube-apiserver-kube-master.home 1/1 Running 2 1h kube-system kube-controller-manager-kube-master.home 1/1 Running 1 1h kube-system kube-discovery-1769846148-l4nch 1/1 Running 0 1h kube-system kube-dns-2924299975-x1kk1 4/4 Running 0 1h kube-system kube-flannel-ds-nf727 2/2 Running 0 1h kube-system kube-flannel-ds-nnfk3 2/2 Running 1 1h kube-system kube-flannel-ds-nr6pv 2/2 Running 2 1h kube-system kube-proxy-5kw16 1/1 Running 0 1h kube-system kube-proxy-d08q1 1/1 Running 0 1h kube-system kube-proxy-hhl8b 1/1 Running 0 1h kube-system kube-scheduler-kube-master.home 1/1 Running 0 1h sock-shop cart-2013512370-4jk0h 1/1 Running 0 10m sock-shop cart-db-1445314776-wn1x4 1/1 Running 0 10m sock-shop catalogue-3777349842-dbhtn 1/1 Running 0 10m sock-shop catalogue-db-2196966982-2k1nb 1/1 Running 0 10m sock-shop front-end-697319832-rl6tq 1/1 Running 0 10m sock-shop orders-3580282209-sh1gx 1/1 Running 0 10m sock-shop orders-db-1215677090-z8t2g 1/1 Running 0 10m sock-shop payment-1376044718-7hfnb 1/1 Running 0 10m sock-shop queue-master-1190579278-gb1tv 1/1 Running 0 10m sock-shop rabbitmq-1897447621-84f7p 1/1 Running 0 10m sock-shop shipping-589875162-bj6mz 1/1 Running 0 10m sock-shop user-3338781425-26d8v 1/1 Running 0 10m sock-shop user-db-710789251-c2qzn 1/1 Running 0 10m

[root@kube-master ~]# kubectl get services --all-namespaces NAMESPACE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE default kubernetes 10.96.0.1 443/TCP 1h kube-system kube-dns 10.96.0.10 53/UDP,53/TCP 1h sock-shop cart 10.108.114.140 80/TCP 10m sock-shop cart-db 10.98.168.140 27017/TCP 10m sock-shop catalogue 10.108.65.226 80/TCP 10m sock-shop catalogue-db 10.106.71.252 3306/TCP 10m sock-shop front-end 10.102.255.8 80:32744/TCP 10m sock-shop orders 10.99.117.254 80/TCP 10m sock-shop orders-db 10.98.129.231 27017/TCP 10m sock-shop payment 10.105.90.68 80/TCP 10m sock-shop queue-master 10.110.38.69 80/TCP 10m sock-shop rabbitmq 10.110.32.30 5672/TCP 10m sock-shop shipping 10.109.87.78 80/TCP 10m sock-shop user 10.110.86.81 80/TCP 10m sock-shop user-db 10.97.17.26 27017/TCP 10m

[root@kube-master ~]# ifconfig|grep inet inet 10.244.0.1 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::2812:ddff:fe03:194d prefixlen 64 scopeid 0x20 inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0 inet 192.168.0.51 netmask 255.255.255.0 broadcast 192.168.0.255 inet6 fe80::5054:ff:fed4:9fc1 prefixlen 64 scopeid 0x20 inet 10.244.0.0 netmask 255.255.0.0 broadcast 0.0.0.0 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 inet6 fe80::d8bc:29ff:fe6d:48bc prefixlen 64 scopeid 0x20

[root@kube-master ~]# kubectl describe services front-end -n sock-shop Name: front-end Namespace: sock-shop Labels: name=front-end Selector: name=front-end Type: LoadBalancer IP: 10.102.255.8 Port: 80/TCP NodePort: 32744/TCP Endpoints: 10.244.1.121:8079 Session Affinity: None No events.

[root@kube-master ~]# curl http://192.168.0.51:32744

NO RESPONSE!!!

current router table:

[root@kube-node1 ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0 10.244.0.0 0.0.0.0 255.255.0.0 U 0 0 0 flannel.1 10.244.1.0 0.0.0.0 255.255.255.0 U 0 0 0 cni0 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0

Proposed Solution:

Page to Update: http://kubernetes.io/...

1.5.1

just a few days, the sock-shop demo can run on v1.4.4, but it doesn't work on v1.5.1

Thanks for you reply!

baotingfang avatar Dec 16 '16 08:12 baotingfang

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta. /lifecycle stale

fejta-bot avatar Dec 20 '17 05:12 fejta-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta. /lifecycle rotten /remove-lifecycle stale

fejta-bot avatar Jan 19 '18 07:01 fejta-bot

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close

fejta-bot avatar Feb 18 '18 07:02 fejta-bot