Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. apiVersion: "k8s.cni.cncf.io/v1"
  2. kind: NetworkAttachmentDefinition
  3. metadata:
  4. name: macvlan-conf
  5. spec:
  6. config: '{
  7. "cniVersion": "0.3.0",
  8. "type": "macvlan",
  9. "master": "eth0",
  10. "mode": "bridge",
  11. "ipam": {
  12. "type": "host-local",
  13. "subnet": "192.168.1.0/24",
  14. "rangeStart": "192.168.1.200",
  15. "rangeEnd": "192.168.1.216",
  16. "routes": [
  17. { "dst": "0.0.0.0/0" }
  18. ],
  19. "gateway": "192.168.1.1"
  20. }
  21. }'
  22.  
  23. apiVersion: v1
  24. kind: Pod
  25. metadata:
  26. name: samplepod
  27. annotations:
  28. k8s.v1.cni.cncf.io/networks: macvlan-conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement