Change domain to generic nip.io. Use http Kubelet port

This commit is contained in:
CarlosEDP 2019-05-03 14:00:05 -03:00
parent 693da4dc9d
commit 4bceaa67e2
8 changed files with 14 additions and 22 deletions

View File

@ -5,6 +5,8 @@ local kp = (import 'kube-prometheus/kube-prometheus.libsonnet')
+ (import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet')
+ (import 'kube-prometheus/kube-prometheus-kops-coredns.libsonnet')
+ (import 'kube-prometheus/kube-prometheus-kubeadm.libsonnet')
// Use http Kubelet targets. Comment to revert to https
+ (import 'kube-prometheus/kube-prometheus-insecure-kubelet.libsonnet')
+ (import 'base_operator_stack.jsonnet')
+ (import 'smtp_server.jsonnet')
// Additional Modules

View File

@ -1,6 +1,6 @@
apiVersion: v1
data:
grafana.ini: W2F1dGguYW5vbnltb3VzXQplbmFibGVkID0gZmFsc2UKW2F1dGguYmFzaWNdCmVuYWJsZWQgPSBmYWxzZQpbc2Vzc2lvbl0KcHJvdmlkZXIgPSBtZW1vcnkKW3NtdHBdCmVuYWJsZWQgPSB0cnVlCmZyb21fYWRkcmVzcyA9IGNhcmxvc2VkcEBnbWFpbC5jb20KZnJvbV9uYW1lID0gR3JhZmFuYSBBbGVydApob3N0ID0gc210cC1zZXJ2ZXIubW9uaXRvcmluZy5zdmM6MjUKcGFzc3dvcmQgPSAKc2tpcF92ZXJpZnkgPSB0cnVlCnVzZXIgPSAK
grafana.ini: W2F1dGguYW5vbnltb3VzXQplbmFibGVkID0gZmFsc2UKW2F1dGguYmFzaWNdCmVuYWJsZWQgPSBmYWxzZQpbc2Vzc2lvbl0KcHJvdmlkZXIgPSBtZW1vcnkKW3NtdHBdCmVuYWJsZWQgPSB0cnVlCmZyb21fYWRkcmVzcyA9IG15ZW1haWxAZ21haWwuY29tCmZyb21fbmFtZSA9IEdyYWZhbmEgQWxlcnQKaG9zdCA9IHNtdHAtc2VydmVyLm1vbml0b3Jpbmcuc3ZjOjI1CnBhc3N3b3JkID0gCnNraXBfdmVyaWZ5ID0gdHJ1ZQp1c2VyID0gCg==
kind: Secret
metadata:
name: grafana-config

View File

@ -5,7 +5,7 @@ metadata:
namespace: monitoring
spec:
rules:
- host: alertmanager.internal.carlosedp.com
- host: alertmanager.192.168.99.100.nip.io
http:
paths:
- backend:

View File

@ -5,7 +5,7 @@ metadata:
namespace: monitoring
spec:
rules:
- host: grafana.internal.carlosedp.com
- host: grafana.192.168.99.100.nip.io
http:
paths:
- backend:

View File

@ -5,7 +5,7 @@ metadata:
namespace: monitoring
spec:
rules:
- host: prometheus.internal.carlosedp.com
- host: prometheus.192.168.99.100.nip.io
http:
paths:
- backend:

View File

@ -26,7 +26,7 @@ spec:
namespace: monitoring
port: web
baseImage: carlosedp/prometheus
externalUrl: http://prometheus.internal.carlosedp.com
externalUrl: http://prometheus.192.168.99.100.nip.io
nodeSelector:
beta.kubernetes.io/os: linux
replicas: 1

View File

@ -8,25 +8,15 @@ metadata:
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
honorLabels: true
interval: 30s
port: https-metrics
scheme: https
tlsConfig:
insecureSkipVerify: true
port: http-metrics
scheme: http
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
honorLabels: true
interval: 30s
metricRelabelings:
- action: drop
regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
sourceLabels:
- __name__
path: /metrics/cadvisor
port: https-metrics
scheme: https
tlsConfig:
insecureSkipVerify: true
port: http-metrics
scheme: http
jobLabel: k8s-app
namespaceSelector:
matchNames:

View File

@ -15,10 +15,10 @@
},
// Domain suffix for the ingresses
suffixDomain: "internal.carlosedp.com",
suffixDomain: "192.168.99.100.nip.io",
// Grafana from email
// Grafana "from" email
grafana: {
from_address: 'carlosedp@gmail.com',
from_address: 'myemail@gmail.com',
},
}