Advertisement
Billias

Untitled

Sep 19th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. ~  kubectl describe service test
  2. Name: test
  3. Namespace: default
  4. Labels: app=test
  5. Annotations: <none>
  6. Selector: app=d
  7. Type: LoadBalancer
  8. IP: 10.32.0.100
  9. LoadBalancer Ingress: 159.69.133.18
  10. Port: 8080 8080/TCP
  11. TargetPort: 8080/TCP
  12. NodePort: 8080 30719/TCP
  13. Endpoints: 10.198.0.2:8080,10.200.0.4:8080
  14. Session Affinity: None
  15. External Traffic Policy: Local
  16. HealthCheck NodePort: 30609
  17. Events:
  18. Type Reason Age From Message
  19. ---- ------ ---- ---- -------
  20. Normal ExternalTrafficPolicy 14m (x6 over 1d) service-controller Local -> Cluster
  21. Normal ExternalTrafficPolicy 13m (x7 over 1d) service-controller Cluster -> Local
  22. ~  kubectl get pods -o wide
  23. NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
  24. busybox-6f48d44df8-7sv4k 1/1 Running 0 2m 10.198.0.2 node2 <none>
  25. busybox-6f48d44df8-k9gn2 1/1 Running 0 2m 10.200.0.4 node3 <none>
  26.  
  27.  
  28. node3 ipvsadm:
  29. root@node3 ~ # ipvsadm -l -n
  30. IP Virtual Server version 1.2.1 (size=4096)
  31. Prot LocalAddress:Port Scheduler Flags
  32. -> RemoteAddress:Port Forward Weight ActiveConn InActConn
  33. TCP 10.32.0.1:443 rr
  34. -> 159.69.153.254:6443 Masq 1 3 0
  35. TCP 10.32.0.165:8080 rr
  36. -> 10.198.0.2:8080 Masq 1 0 0
  37. -> 10.200.0.4:8080 Masq 1 0 0
  38. TCP 10.200.0.1:34222 rr
  39. -> 10.198.0.2:8080 Masq 1 0 0
  40. -> 10.200.0.4:8080 Masq 1 0 0
  41. TCP 85.10.200.35:34222 rr
  42. -> 10.198.0.2:8080 Masq 1 0 0
  43. -> 10.200.0.4:8080 Masq 1 0 0
  44. TCP 127.0.0.1:34222 rr
  45. -> 10.198.0.2:8080 Masq 1 0 0
  46. -> 10.200.0.4:8080 Masq 1 0 0
  47.  
  48.  
  49. Node2:
  50.  
  51. root@node2 ~ # ipvsadm -l -n
  52. IP Virtual Server version 1.2.1 (size=4096)
  53. Prot LocalAddress:Port Scheduler Flags
  54. -> RemoteAddress:Port Forward Weight ActiveConn InActConn
  55. TCP 159.69.151.30:34222 rr
  56. -> 10.198.0.2:8080 Masq 1 0 0
  57. -> 10.200.0.4:8080 Masq 1 0 0
  58. TCP 10.32.0.1:443 rr
  59. -> 159.69.153.254:6443 Masq 1 2 0
  60. TCP 10.32.0.165:8080 rr
  61. -> 10.198.0.2:8080 Masq 1 0 0
  62. -> 10.200.0.4:8080 Masq 1 0 0
  63. TCP 10.198.0.0:34222 rr
  64. -> 10.198.0.2:8080 Masq 1 0 0
  65. -> 10.200.0.4:8080 Masq 1 0 0
  66. TCP 127.0.0.1:34222 rr
  67. -> 10.198.0.2:8080 Masq 1 0 0
  68. -> 10.200.0.4:8080 Masq 1 0 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement