Showing posts from September, 2019

Monitoring Kubernetes with Prometheus - Linux Guru

How to deploy Prometheus on Kubernetes.
Prometheus is an open-source systems monitoring and alerting toolkit, You can monitor various resources using Prometheus. Prometheus has multiple modes for visualisation data: a built-in expression browse. In this article we will deploy prometheus server in Kubernetes and Monitor resorces of kubernetes cluster. after deploying prometheus you can confgure prometheus server url in grafana to visulize metric graph. Here are the steps to deploy prometheus on kubernetes. Create namespace We will create namespace called monitoring and deploy prometheus into that namespace. create a file name with namespace.yaml. #Create namespace apiVersion: v1 kind: Namespace metadata: name: monitoring kubectl create -f namespace.yaml Create cluster role and binding. Now we will create cluster role for correct permission to the cluster in order to deploy and access resources. create a file name with clusterrole.yaml. apiVersion: …

1 node(s) had taints that the pod didn't tolerate Solved

1 node(s) had taints that the pod didn't tolerate. By default pods doesn't schedule on master node of kubernetes. Pods always run on worker node but sometime you want to run pods on single node master cluster. then you can use this to run pods on master node kubernetes aws. But it' not best prectice for kubernetes.

Error :1 node(s) had taints that the pod didn't tolerate

have you faced your pod in pending state while deploying new pod and not running ? the problem is your pod not able to schedule on worker node. there are many resons. Nodes not ready, pod not ready or unsuffciant resources it's because taint.

Solution : you can remove taint using below command. it will deploy your pod direct on master node instead of your worker. kubectl taint nodes --all