diff --git a/bee42-PeterRossbach Kubernetes Camp (Linuxhotel)-20221128.pdf b/bee42-PeterRossbach Kubernetes Camp (Linuxhotel)-20221128.pdf new file mode 100644 index 0000000..3b5f1e7 Binary files /dev/null and b/bee42-PeterRossbach Kubernetes Camp (Linuxhotel)-20221128.pdf differ diff --git a/check_this b/check_this index d7f88fe..216ac12 100644 --- a/check_this +++ b/check_this @@ -26,4 +26,6 @@ https://grpc.io/docs/languages/python/basics/ git clone https://github.com/scriptcamp/kubernetes-postgresql.git -https://devopscube.com/deploy-postgresql-statefulset/ \ No newline at end of file +https://devopscube.com/deploy-postgresql-statefulset/ + +https://operatorhub.io/ \ No newline at end of file diff --git a/k8s/monitoring b/k8s/monitoring new file mode 100644 index 0000000..1d1e7f2 --- /dev/null +++ b/k8s/monitoring @@ -0,0 +1,87 @@ +Monitoring +Prometheus + +mkdir ~/monitoring && cd ~/monitoring + +helm repo add prometheus-community https://prometheus-community.github.io/helm-charts +helm repo update + +helm upgrade --install --namespace monitoring \ + --create-namespace \ + prometheus prometheus-community/prometheus + +# cloud instance +IP4=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) +# notebook +IP4=$(/sbin/ip -o -4 addr list br2 | awk '{print $4}' | cut -d/ -f1) + +export POD_NAME=$(kubectl get pods --namespace monitoring -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}") +kubectl --namespace monitoring port-forward --address $IP4 $POD_NAME 9090 & + + + +Add Alert Rules to prometheus + +cat >values.yaml <