diff --git a/README.md b/README.md index aae7138..5ee5ae7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ -+ # Prometheus Installtion(with Grafana) +# - RaspberryPI on K3S worker node + ++ ## Prometheus Installtion(with Grafana) ``` -kubectl create ns monitoring +kubectl create -f promethues/prometheus/ +kubectl create -f promethues/node-exporter/ +kubectl create -f promethues/kube-state-metrics-configs/ +kubectl create -f promethues/grafana/ ``` ### Prometheus_PORT: 30000, Grafana_PORT: 30001 diff --git a/kubernetes-grafana/deployment.yaml b/grafana/deployment.yaml similarity index 100% rename from kubernetes-grafana/deployment.yaml rename to grafana/deployment.yaml diff --git a/kubernetes-grafana/grafana-datasource-config.yaml b/grafana/grafana-datasource-config.yaml similarity index 100% rename from kubernetes-grafana/grafana-datasource-config.yaml rename to grafana/grafana-datasource-config.yaml diff --git a/kubernetes-grafana/service.yaml b/grafana/service.yaml similarity index 100% rename from kubernetes-grafana/service.yaml rename to grafana/service.yaml diff --git a/kube-state-metrics-configs/deployment.yaml b/kube-state-metrics-configs/deployment.yaml index ae59be2..ef4ecb2 100644 --- a/kube-state-metrics-configs/deployment.yaml +++ b/kube-state-metrics-configs/deployment.yaml @@ -18,7 +18,7 @@ spec: app.kubernetes.io/version: v1.8.0 spec: containers: - - image: quay.io/coreos/kube-state-metrics:v1.8.0 + - image: carlosedp/kube-state-metrics:v1.9.6 livenessProbe: httpGet: path: /healthz @@ -37,6 +37,4 @@ spec: port: 8081 initialDelaySeconds: 5 timeoutSeconds: 5 - nodeSelector: - kubernetes.io/os: linux serviceAccountName: kube-state-metrics diff --git a/kubernetes-node-exporter/daemonset.yaml b/node-exporter/daemonset.yaml similarity index 100% rename from kubernetes-node-exporter/daemonset.yaml rename to node-exporter/daemonset.yaml diff --git a/kubernetes-node-exporter/service.yaml b/node-exporter/service.yaml similarity index 100% rename from kubernetes-node-exporter/service.yaml rename to node-exporter/service.yaml diff --git a/prometheus/1.namespace.yaml b/prometheus/1.namespace.yaml new file mode 100644 index 0000000..d325236 --- /dev/null +++ b/prometheus/1.namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: monitoring diff --git a/kubernetes-prometheus/clusterRole.yaml b/prometheus/2.clusterRole.yaml similarity index 100% rename from kubernetes-prometheus/clusterRole.yaml rename to prometheus/2.clusterRole.yaml diff --git a/kubernetes-prometheus/config-map.yaml b/prometheus/3.config-map.yaml similarity index 100% rename from kubernetes-prometheus/config-map.yaml rename to prometheus/3.config-map.yaml diff --git a/kubernetes-prometheus/prometheus-deployment.yaml b/prometheus/4.prometheus-deployment.yaml similarity index 100% rename from kubernetes-prometheus/prometheus-deployment.yaml rename to prometheus/4.prometheus-deployment.yaml diff --git a/kubernetes-prometheus/prometheus-service.yaml b/prometheus/5.prometheus-service.yaml similarity index 100% rename from kubernetes-prometheus/prometheus-service.yaml rename to prometheus/5.prometheus-service.yaml