From 4ad680afdf137d74e9c89b4891b4b466f7ba3ced Mon Sep 17 00:00:00 2001 From: Moritz Graf Date: Fri, 12 Jun 2020 14:24:18 +0200 Subject: [PATCH] Still not migrated, but tried for the 4th time --- k8s/README.md | 78 ++++++++++++++++++++++++++++++ terraform/ovh.tf | 8 +-- terraform/terraform.tfstate | 8 +-- terraform/terraform.tfstate.backup | 8 +-- 4 files changed, 90 insertions(+), 12 deletions(-) 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 - <