其他分享
首页 > 其他分享> > k8s 10.96.0.1

k8s 10.96.0.1

作者:互联网

 

 

root@cloud:~# ip a | grep 10.96.0.1 -B 3
       valid_lft forever preferred_lft forever
59: kube-ipvs0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default 
    link/ether 96:74:f2:7e:e4:f4 brd ff:ff:ff:ff:ff:ff
    inet 10.96.0.1/32 brd 10.96.0.1 scope global kube-ipvs0
       valid_lft forever preferred_lft forever
    inet 10.96.0.10/32 brd 10.96.0.10 scope global kube-ipvs0
root@cloud:~# netstat -pan | grep 10.96.0.1
tcp        0      0 10.96.0.1:58474         10.96.0.1:443           ESTABLISHED 830063/calico-node  
tcp        0      0 10.96.0.1:58476         10.96.0.1:443           ESTABLISHED 830064/calico-node  
tcp        0      0 10.96.0.1:58480         10.96.0.1:443           ESTABLISHED 830067/calico-node  
root@cloud:~# netstat -pan | grep 443
tcp        0      0 0.0.0.0:9443            0.0.0.0:*               LISTEN      168010/haproxy      
tcp        0      0 10.96.0.1:58474         10.96.0.1:443           ESTABLISHED 830063/calico-node  
tcp        0      0 10.96.0.1:58476         10.96.0.1:443           ESTABLISHED 830064/calico-node  
tcp        0      0 10.96.0.1:58480         10.96.0.1:443           ESTABLISHED 830067/calico-node  
tcp        0      0 10.10.16.47:35158       10.10.16.249:6443       ESTABLISHED 827774/kube-schedul 
tcp        0      0 10.10.16.47:34736       10.10.16.249:6443       ESTABLISHED 826967/kubelet      
tcp        0      0 10.10.16.47:34732       10.10.16.249:6443       ESTABLISHED 827629/kube-proxy   
tcp        0      0 10.10.16.47:34782       10.10.16.249:6443       ESTABLISHED 827622/kube-control 
tcp        0      0 10.10.16.47:35160       10.10.16.249:6443       ESTABLISHED 827774/kube-schedul 
tcp        0      1 10.10.16.47:37918       10.10.18.46:6443        SYN_SENT    168010/haproxy      
tcp6       0      0 :::6443                 :::*                    LISTEN      827911/kube-apiserv 
tcp6       0      0 10.10.16.47:6443        10.10.16.47:42777       ESTABLISHED 827911/kube-apiserv 
tcp6       0      0 ::1:6443                ::1:52242               ESTABLISHED 827911/kube-apiserv 
tcp6       0      0 ::1:52242               ::1:6443                ESTABLISHED 827911/kube-apiserv 
tcp6       0      0 10.10.16.47:6443        10.10.16.82:47963       ESTABLISHED 827911/kube-apiserv 
tcp6       0      0 10.10.16.47:6443        10.10.16.251:15060      ESTABLISHED 827911/kube-apiserv 
unix  2      [ ACC ]     STREAM     LISTENING     55409443 337187/systemd       /run/user/0/gnupg/S.gpg-agent
unix  2      [ ACC ]     STREAM     LISTENING     51485076 827574/containerd-s  @/containerd-shim/38931443d2bc0c80370a06127267236ac8c8bc9683e0c32a9ec332e873d49a99.sock@
unix  2      [ ACC ]     STREAM     LISTENING     51529817 827727/containerd-s  @/containerd-shim/e306d59c5aaabc84814430beeb6045b2b9fe0a048974bc3eb92bd2863d302d50.sock@
unix  3      [ ]         STREAM     CONNECTED     51517569 827727/containerd-s  @/containerd-shim/e306d59c5aaabc84814430beeb6045b2b9fe0a048974bc3eb92bd2863d302d50.sock@
unix  3      [ ]         STREAM     CONNECTED     51503194 827574/containerd-s  @/containerd-shim/38931443d2bc0c80370a06127267236ac8c8bc9683e0c32a9ec332e873d49a99.sock@
root@cloud:~# kubectl get svc -o wide
NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE   SELECTOR
kubernetes   ClusterIP   10.96.0.1    <none>        443/TCP   18h   <none>
root@cloud:~# 

 

 

root@cloud:~# kubectl describe svc/kubernetes
Name:              kubernetes
Namespace:         default
Labels:            component=apiserver
                   provider=kubernetes
Annotations:       <none>
Selector:          <none>
Type:              ClusterIP
IP:                10.96.0.1
Port:              https  443/TCP
TargetPort:        6443/TCP
Endpoints:         10.10.16.251:6443,10.10.16.47:6443,10.10.16.82:6443
Session Affinity:  None
Events:            <none>
root@cloud:~#

 

 

root@cloud:~# netstat -pan | grep 6443
tcp        0      0 10.10.16.47:35158       10.10.16.249:6443       ESTABLISHED 827774/kube-schedul 
tcp        0      0 10.10.16.47:34736       10.10.16.249:6443       ESTABLISHED 826967/kubelet      
tcp        0      0 10.10.16.47:34732       10.10.16.249:6443       ESTABLISHED 827629/kube-proxy   
tcp        0      0 10.10.16.47:34782       10.10.16.249:6443       ESTABLISHED 827622/kube-control 
tcp        0      0 10.10.16.47:35160       10.10.16.249:6443       ESTABLISHED 827774/kube-schedul 
tcp6       0      0 :::6443                 :::*                    LISTEN      827911/kube-apiserv 
tcp6       0      0 10.10.16.47:6443        10.10.16.47:42777       ESTABLISHED 827911/kube-apiserv 
tcp6       0      0 ::1:6443                ::1:52242               ESTABLISHED 827911/kube-apiserv 
tcp6       0      0 ::1:52242               ::1:6443                ESTABLISHED 827911/kube-apiserv 
tcp6       0      0 10.10.16.47:6443        10.10.16.82:47963       ESTABLISHED 827911/kube-apiserv 
tcp6       0      0 10.10.16.47:6443        10.10.16.251:15060      ESTABLISHED 827911/kube-apiserv 
root@cloud:~# ps -elf | grep

 

标签:ESTABLISHED,kube,0.1,16.47,6443,10.96,10.10,k8s
来源: https://www.cnblogs.com/dream397/p/14962500.html