From 53d681e054b410251b7b3a12714a1271dde19d9b Mon Sep 17 00:00:00 2001 From: Victor Barba Martin Date: Thu, 4 Nov 2021 17:51:47 +0100 Subject: [PATCH] add monitoring templates --- k8s/monitoring/certificate.yaml | 14 -------------- k8s/monitoring/clusterissuer.yaml | 19 ------------------- .../{ => templates}/alertmanager-config.yaml | 0 .../{ => templates}/prometheus-rules.yaml | 0 4 files changed, 33 deletions(-) delete mode 100644 k8s/monitoring/certificate.yaml delete mode 100644 k8s/monitoring/clusterissuer.yaml rename k8s/monitoring/{ => templates}/alertmanager-config.yaml (100%) rename k8s/monitoring/{ => templates}/prometheus-rules.yaml (100%) diff --git a/k8s/monitoring/certificate.yaml b/k8s/monitoring/certificate.yaml deleted file mode 100644 index ebe3189..0000000 --- a/k8s/monitoring/certificate.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: cert-manager.io/v1alpha2 -kind: Certificate -metadata: - name: prometheus-operator-prod - namespace: monitoring -spec: - secretName: letsencrypt-secret-prod - duration: 2160h # 90d - renewBefore: 360h # 15d - issuerRef: - name: letsencrypt-monitoring - kind: ClusterIssuer - dnsNames: - - monitoring.video.jamkazam.com \ No newline at end of file diff --git a/k8s/monitoring/clusterissuer.yaml b/k8s/monitoring/clusterissuer.yaml deleted file mode 100644 index 46cc54b..0000000 --- a/k8s/monitoring/clusterissuer.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: ClusterIssuer -metadata: - name: letsencrypt-monitoring -spec: - acme: - # You must replace this email address with your own. - # Let's Encrypt will use this to contact you about expiring - # certificates, and issues related to your account. - email: victor.barba.martin@toptal.com - server: https://acme-v02.api.letsencrypt.org/directory - privateKeySecretRef: - # Secret resource that will be used to store the account's private key. - name: issuer-account-key - # Add a single challenge solver, HTTP01 using nginx - solvers: - - http01: - ingress: - class: nginx diff --git a/k8s/monitoring/alertmanager-config.yaml b/k8s/monitoring/templates/alertmanager-config.yaml similarity index 100% rename from k8s/monitoring/alertmanager-config.yaml rename to k8s/monitoring/templates/alertmanager-config.yaml diff --git a/k8s/monitoring/prometheus-rules.yaml b/k8s/monitoring/templates/prometheus-rules.yaml similarity index 100% rename from k8s/monitoring/prometheus-rules.yaml rename to k8s/monitoring/templates/prometheus-rules.yaml