Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyaml
titleNetwork attachement configuration
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
  name: gigevision-network
  namespace: testbeamline
spec:
  config: '{
    "cniVersion": "0.3.0",
    "type": "macvlan",
    "mode": "bridge",
    "master": "enp4s0f0", ## the ethernet adapter that you want to access
     
    "ipam": {
      "type": "host-local",
      "subnet": "192.168.115.0/24",
      "rangeStart": "192.168.115.220",
      "rangeEnd": "192.168.115.254",
      "routes": [
        {
          "dst": "192.168.115.0/24",
          "gw": "192.168.115.2"
        }
      ],
      "gateway": "192.168.115.2"
    }
  }'

...

    • Verify Pod's Network Interfaces & camera access

      Once the pod is running, you can verify that it has multiple network interfaces by logging into the pod and using the ip command:

      microk8s kubectl exec -it pod-with-multus -n testbeamline -- ip a

    • Code Block
      languagebash
      titleexpected output
      
      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 
             valid_lft forever preferred_lft forever
      3: eth0@if1758: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default 
          link/ether ee:b2:9c:77:b3:6e brd ff:ff:ff:ff:ff:ff link-netnsid 0
          inet 10.1.24.151/32 scope global eth0
             valid_lft forever preferred_lft forever
          inet6 fe80::ecb2:9cff:fe77:b36e/64 scope link 
             valid_lft forever preferred_lft forever
      4: net1@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
          link/ether 22:32:b3:ae:55:5e brd ff:ff:ff:ff:ff:ff link-netnsid 0
          inet 192.168.115.220/24 brd 192.168.115.255 scope global net1
             valid_lft forever preferred_lft forever
          inet6 fe80::2032:b3ff:feae:555e/64 scope link 
             valid_lft forever preferred_lft forever

    • microk8s kubectl exec -it pod-with-multus -n testbeamline -- arv-tool-0.8


    • Code Block
      languagebash
      titlearv-tool expected output
      microk8s kubectl exec -it pod-with-multus -n testbeamline -- arv-tool-0.8
      Basler-a2A2600-20gmBAS-40437926 (192.168.115.47) <-- your camera