default-public-cluster-nads.yaml 613 B

1234567891011121314151617181920
  1. ---
  2. apiVersion: k8s.cni.cncf.io/v1
  3. kind: NetworkAttachmentDefinition
  4. metadata:
  5. name: public-net
  6. namespace: default
  7. labels:
  8. annotations:
  9. spec:
  10. config: '{ "cniVersion": "0.3.1", "type": "macvlan", "master": "eth0", "mode": "bridge", "ipam": { "type": "whereabouts", "range": "192.168.20.0/24" } }'
  11. ---
  12. apiVersion: k8s.cni.cncf.io/v1
  13. kind: NetworkAttachmentDefinition
  14. metadata:
  15. name: cluster-net
  16. namespace: default
  17. labels:
  18. annotations:
  19. spec:
  20. config: '{ "cniVersion": "0.3.1", "type": "macvlan", "master": "eth0", "mode": "bridge", "ipam": { "type": "whereabouts", "range": "192.168.30.0/24" } }'