Skip to content

Instantly share code, notes, and snippets.

@johnsimcall
Created October 16, 2025 19:10
Show Gist options
  • Select an option

  • Save johnsimcall/6762cad2d58df8c561e6570b47d2609e to your computer and use it in GitHub Desktop.

Select an option

Save johnsimcall/6762cad2d58df8c561e6570b47d2609e to your computer and use it in GitHub Desktop.
Trilio net-attach-def
---
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
name: trilio-macvlan-ens36-vlan18
namespace: trilio-system
spec:
config: |-
{
"cniVersion": "0.3.1",
"name": "trilio-macvlan-ens36-vlan18",
"type": "macvlan",
"master": "ens36",
"mode": "bridge",
"ipam": {
"type": "dhcp"
}
}
@vebutton
Copy link

see sample:

apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
annotations:
k8s.V1.cni.cncf.io/resourceName: bridge.network.kubevirt.io/br1
creationTimestamp: "2024-09-20T14:00:05Z"
generation: 1
name: backup-network
namespace: trilio-system
resourceVersion: "192473"
uid: 63dce9e8-feb9-4361-a690-6065f09efc
spec:
config: '{
"name": "backup-network",
"type": "bridge",
"cniVersion": "0.3.1",
"bridge": "br1",
"macspoofchk": false,
"ipam": {},
"preserveDefaultVlan": false
}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment