You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
746 B

  1. {
  2. "name": "cni0",
  3. "cniVersion":"0.3.1",
  4. "plugins":[
  5. {
  6. "type": "flannel",
  7. "delegate": {
  8. "type": "calico",
  9. "include_default_routes": true,
  10. "etcd_endpoints": "{{ etcd_access_addresses }}",
  11. "etcd_key_file": "{{ canal_cert_dir }}/key.pem",
  12. "etcd_cert_file": "{{ canal_cert_dir }}/cert.crt",
  13. "etcd_ca_cert_file": "{{ canal_cert_dir }}/ca_cert.crt",
  14. "log_level": "info",
  15. "log_file_path": "/var/log/calico/cni/cni.log",
  16. "policy": {
  17. "type": "k8s"
  18. },
  19. "kubernetes": {
  20. "kubeconfig": "__KUBECONFIG_FILEPATH__"
  21. }
  22. }
  23. },
  24. {
  25. "type":"portmap",
  26. "capabilities":{
  27. "portMappings":true
  28. }
  29. }
  30. ]
  31. }