We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cat <<EOF | kubectl apply -f - apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition metadata: name: macvlan-conf spec: config: '{ "cniVersion": "0.3.1", "type": "macvlan", "master": "ens33", "mode": "bridge", "ipam": { "type": "host-local", "subnet": "192.168.1.0/24", "rangeStart": "192.168.1.200", "rangeEnd": "192.168.1.216", "routes": [ { "dst": "0.0.0.0/0" } ], "gateway": "192.168.1.1" } }' EOF
cat <<EOF | kubectl create -f - apiVersion: v1 kind: Pod metadata: name: busybox annotations: k8s.v1.cni.cncf.io/networks: macvlan-conf,macvlan-conf spec: containers: - name: buxybox-container image: registry.cn-hangzhou.aliyuncs.com/hxpdocker/busybox:1.33.1 command: - sh - -c - "sleep 1000000" EOF
root@k8s-master01:~# kubectl get pod -owide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES busybox 1/1 Running 0 35m 10.244.69.193 k8s-worker02 <none> <none> nginxweb-7db59bb6df-bc8sx 1/1 Running 2 (118m ago) 27h 10.244.79.107 k8s-worker01 <none> <none> nginxweb-7db59bb6df-s2kh8 1/1 Running 2 (120m ago) 27h 10.244.69.248 k8s-worker02 <none> <none> rating 2/2 Running 4 (120m ago) 24h 10.244.69.246 k8s-worker02 <none> <none> samplepod 1/1 Running 0 26m 10.244.79.112 k8s-worker01 <none> <none> shared-volume-pod 2/2 Running 2 (118m ago) 24h 10.244.79.108 k8s-worker01 <none> <none>
root@k8s-master01:~# kubectl exec -it busybox -- sh / # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0@if17: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1450 qdisc noqueue qlen 1000 link/ether fa:a6:d1:52:22:e4 brd ff:ff:ff:ff:ff:ff inet 10.244.69.193/32 scope global eth0 valid_lft forever preferred_lft forever inet6 2001::9c67:3402:8888:5f7c/128 scope global valid_lft forever preferred_lft forever inet6 fe80::f8a6:d1ff:fe52:22e4/64 scope link valid_lft forever preferred_lft forever 3: net1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue link/ether b6:f7:4f:68:e4:5a brd ff:ff:ff:ff:ff:ff inet 192.168.1.202/24 brd 192.168.1.255 scope global net1 valid_lft forever preferred_lft forever inet6 fe80::b4f7:4fff:fe68:e45a/64 scope link valid_lft forever preferred_lft forever 4: net2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue link/ether 9a:51:73:7a:be:f0 brd ff:ff:ff:ff:ff:ff inet 192.168.1.203/24 brd 192.168.1.255 scope global net2 valid_lft forever preferred_lft forever inet6 fe80::9851:73ff:fe7a:bef0/64 scope link valid_lft forever preferred_lft forever
root@k8s-worker02:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:0c:29:31:80:a1 brd ff:ff:ff:ff:ff:ff altname enp2s1 inet 192.168.229.182/24 brd 192.168.229.255 scope global ens33 valid_lft forever preferred_lft forever inet 192.168.229.138/24 metric 100 brd 192.168.229.255 scope global secondary dynamic ens33 valid_lft 1182sec preferred_lft 1182sec inet6 2000::173/64 scope global valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fe31:80a1/64 scope link valid_lft forever preferred_lft forever 3: kube-ipvs0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default link/ether 8a:4f:de:7d:56:dd brd ff:ff:ff:ff:ff:ff inet 10.109.114.171/32 scope global kube-ipvs0 valid_lft forever preferred_lft forever inet 10.96.0.10/32 scope global kube-ipvs0 valid_lft forever preferred_lft forever inet 10.111.162.36/32 scope global kube-ipvs0 valid_lft forever preferred_lft forever inet 10.97.204.130/32 scope global kube-ipvs0 valid_lft forever preferred_lft forever inet 10.96.0.1/32 scope global kube-ipvs0 valid_lft forever preferred_lft forever inet6 2002::bcf4/128 scope global valid_lft forever preferred_lft forever 4: vxlan.calico: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether 66:ff:2b:bc:03:a3 brd ff:ff:ff:ff:ff:ff inet 10.244.69.192/32 scope global vxlan.calico valid_lft forever preferred_lft forever inet6 fe80::64ff:2bff:febc:3a3/64 scope link valid_lft forever preferred_lft forever 7: cali29f667b69c9@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000 link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netns cni-9ad8cca6-1e7c-c8a1-9fa8-3309539013e9 inet6 fe80::ecee:eeff:feee:eeee/64 scope link valid_lft forever preferred_lft forever 8: cali449dd2400be@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000 link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netns cni-30ef8dd9-c53c-15b8-40c7-01a54f26ab33 inet6 fe80::ecee:eeff:feee:eeee/64 scope link valid_lft forever preferred_lft forever 9: cali73c15e0c598@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000 link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netns cni-53b534a9-52ec-9d48-051a-a84d93c1ce81 inet6 fe80::ecee:eeff:feee:eeee/64 scope link valid_lft forever preferred_lft forever 10: calia1b75995b10@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000 link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netns cni-a9c46591-5ac5-81e8-6171-3ca2246cb129 inet6 fe80::ecee:eeff:feee:eeee/64 scope link valid_lft forever preferred_lft forever 17: cali12d4a061371@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000 link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netns cni-7852a450-3e4b-674d-2cb0-c829aca966c8 inet6 fe80::ecee:eeff:feee:eeee/64 scope link valid_lft forever preferred_lft forever
root@k8s-master01:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.229.2 0.0.0.0 UG 0 0 0 ens33 0.0.0.0 192.168.229.2 0.0.0.0 UG 100 0 0 ens33 10.244.32.128 0.0.0.0 255.255.255.192 U 0 0 0 * 10.244.32.132 0.0.0.0 255.255.255.255 UH 0 0 0 cali1f4bed10e0e 10.244.32.133 0.0.0.0 255.255.255.255 UH 0 0 0 cali268cbfd25e7 10.244.32.134 0.0.0.0 255.255.255.255 UH 0 0 0 cali669adfb6981 10.244.69.192 192.168.229.182 255.255.255.192 UG 0 0 0 ens33 10.244.79.64 192.168.229.181 255.255.255.192 UG 0 0 0 ens33 192.168.229.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33 192.168.229.2 0.0.0.0 255.255.255.255 UH 100 0 0 ens33
The text was updated successfully, but these errors were encountered:
I think we need a prose description of what you're looking for or expect
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: