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.

73 lines
1.5 KiB

  1. Calico
  2. ===========
  3. Check if the calico-node container is running
  4. ```
  5. docker ps | grep calico
  6. ```
  7. The **calicoctl** command allows to check the status of the network workloads.
  8. * Check the status of Calico nodes
  9. ```
  10. calicoctl node status
  11. ```
  12. or for versions prior *v1.0.0*:
  13. ```
  14. calicoctl status
  15. ```
  16. * Show the configured network subnet for containers
  17. ```
  18. calicoctl get ippool -o wide
  19. ```
  20. or for versions prior *v1.0.0*:
  21. ```
  22. calicoctl pool show
  23. ```
  24. * Show the workloads (ip addresses of containers and their located)
  25. ```
  26. calicoctl get workloadEndpoint -o wide
  27. ```
  28. and
  29. ```
  30. calicoctl get hostEndpoint -o wide
  31. ```
  32. or for versions prior *v1.0.0*:
  33. ```
  34. calicoctl endpoint show --detail
  35. ```
  36. ##### Optionnal : Define network backend
  37. In some cases you may want to define Calico network backend. Allowed values are 'bird', 'gobgp' or 'none'. Bird is a default value.
  38. To re-define you need to edit the inventory and add a group variable `calico_network_backend`
  39. ```
  40. calico_network_backend: none
  41. ```
  42. ##### Optionnal : BGP Peering with border routers
  43. In some cases you may want to route the pods subnet and so NAT is not needed on the nodes.
  44. For instance if you have a cluster spread on different locations and you want your pods to talk each other no matter where they are located.
  45. The following variables need to be set:
  46. `peer_with_router` to enable the peering with the datacenter's border router (default value: false).
  47. you'll need to edit the inventory and add a and a hostvar `local_as` by node.
  48. ```
  49. node1 ansible_ssh_host=95.54.0.12 local_as=xxxxxx
  50. ```