Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~ kubectl describe service test
- Name: test
- Namespace: default
- Labels: app=test
- Annotations: <none>
- Selector: app=d
- Type: LoadBalancer
- IP: 10.32.0.100
- LoadBalancer Ingress: 159.69.133.18
- Port: 8080 8080/TCP
- TargetPort: 8080/TCP
- NodePort: 8080 30719/TCP
- Endpoints: 10.198.0.2:8080,10.200.0.4:8080
- Session Affinity: None
- External Traffic Policy: Local
- HealthCheck NodePort: 30609
- Events:
- Type Reason Age From Message
- ---- ------ ---- ---- -------
- Normal ExternalTrafficPolicy 14m (x6 over 1d) service-controller Local -> Cluster
- Normal ExternalTrafficPolicy 13m (x7 over 1d) service-controller Cluster -> Local
- ~ kubectl get pods -o wide
- NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
- busybox-6f48d44df8-7sv4k 1/1 Running 0 2m 10.198.0.2 node2 <none>
- busybox-6f48d44df8-k9gn2 1/1 Running 0 2m 10.200.0.4 node3 <none>
- node3 ipvsadm:
- root@node3 ~ # ipvsadm -l -n
- IP Virtual Server version 1.2.1 (size=4096)
- Prot LocalAddress:Port Scheduler Flags
- -> RemoteAddress:Port Forward Weight ActiveConn InActConn
- TCP 10.32.0.1:443 rr
- -> 159.69.153.254:6443 Masq 1 3 0
- TCP 10.32.0.165:8080 rr
- -> 10.198.0.2:8080 Masq 1 0 0
- -> 10.200.0.4:8080 Masq 1 0 0
- TCP 10.200.0.1:34222 rr
- -> 10.198.0.2:8080 Masq 1 0 0
- -> 10.200.0.4:8080 Masq 1 0 0
- TCP 85.10.200.35:34222 rr
- -> 10.198.0.2:8080 Masq 1 0 0
- -> 10.200.0.4:8080 Masq 1 0 0
- TCP 127.0.0.1:34222 rr
- -> 10.198.0.2:8080 Masq 1 0 0
- -> 10.200.0.4:8080 Masq 1 0 0
- Node2:
- root@node2 ~ # ipvsadm -l -n
- IP Virtual Server version 1.2.1 (size=4096)
- Prot LocalAddress:Port Scheduler Flags
- -> RemoteAddress:Port Forward Weight ActiveConn InActConn
- TCP 159.69.151.30:34222 rr
- -> 10.198.0.2:8080 Masq 1 0 0
- -> 10.200.0.4:8080 Masq 1 0 0
- TCP 10.32.0.1:443 rr
- -> 159.69.153.254:6443 Masq 1 2 0
- TCP 10.32.0.165:8080 rr
- -> 10.198.0.2:8080 Masq 1 0 0
- -> 10.200.0.4:8080 Masq 1 0 0
- TCP 10.198.0.0:34222 rr
- -> 10.198.0.2:8080 Masq 1 0 0
- -> 10.200.0.4:8080 Masq 1 0 0
- TCP 127.0.0.1:34222 rr
- -> 10.198.0.2:8080 Masq 1 0 0
- -> 10.200.0.4:8080 Masq 1 0 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement