diff --git a/k8s/README.md b/k8s/README.md index 56a15f6..88ca147 100644 --- a/k8s/README.md +++ b/k8s/README.md @@ -106,6 +106,48 @@ for i in $( echo $namespaces ) ; do done ``` +## networking with calico + +Install calicoctl in cluster + +```sh +kubectl apply -n kube-system -f https://docs.projectcalico.org/manifests/calicoctl.yaml +``` + +Then you may send commands like: + +```sh +kubectl exec -ti -n kube-system calicoctl -- /calicoctl get workloadendpoints -n mailu +``` + +Or on the server directly: + +```sh +sudo -E /usr/local/bin/calicoctl node checksystem +``` + +### metrics + +See this [documentation](https://docs.projectcalico.org/maintenance/monitor-component-metrics). + +```sh +kubectl exec -ti -n kube-system calicoctl -- /calicoctl patch felixConfiguration default --patch '{"spec":{"prometheusMetricsEnabled": true}}' +kubectl apply -n kube-system -f - <