Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. // Create ConfigMap
  2. # This ConfigMap is used to configure k8s cni ipv6 e2e.
  3. kind: ConfigMap
  4. apiVersion: v1
  5. metadata:
  6. name: cni-config
  7. namespace: kube-system
  8. data:
  9. cni_ipv4_default_cidr: "99.99.99.0/24"
  10. cni_ipv4_default_gw: "99.99.99.1"
  11. cni_ipv6_default_cidr: "2001:db8::/64"
  12. cni_ipv6_default_gw: "2001:db8::1"
  13.  
  14. // Update DaemonSet
  15. # This container installs the CNI binaries
  16. # and CNI network config file on each node.
  17. - name: install-cni
  18. image: calico/cni:v1.5.6
  19. command: ["/install-cni.sh"]
  20. env:
  21. # Set env vars used by install-cni.sh script.
  22. - name: CNI_IPV4_CIDR
  23. valueFrom:
  24. configMapKeyRef:
  25. name: cni-config
  26. key: cni_ipv4_default_cidr
  27. - name: CNI_IPV4_GW
  28. valueFrom:
  29. configMapKeyRef:
  30. name: cni-config
  31. key: cni_ipv4_default_gw
  32. - name: CNI_IPV6_CIDR
  33. valueFrom:
  34. configMapKeyRef:
  35. name: cni-config
  36. key: cni_ipv6_default_cidr
  37. - name: CNI_IPV6_GW
  38. valueFrom:
  39. configMapKeyRef:
  40. name: cni-config
  41. key: cni_ipv6_default_gw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement