Skip to content
Snippets Groups Projects
Verified Commit 9270d324 authored by Mark's avatar Mark
Browse files

Make prometheus ingress configurable

parent 6dacbdc3
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,8 @@ wordpress_mariadb_root_password: "{{ lookup('password', '{{ cluster_dir }}/secre
# Grafana credentials
grafana_admin_password: "{{ lookup('password', '{{ cluster_dir }}/secrets/grafana_admin_password chars=ascii_letters') }}"
# Prometheus credentials
# Credetnials used to protect the prometheus server. Only needed when prometheus ingress is enabled
# username is admin
prometheus_basic_auth: "{{ lookup('password', '{{ cluster_dir }}/secrets/prometheus_basic_auth chars=ascii_letters') }}"
# Single sign-on passwords
......
......@@ -13,6 +13,8 @@ release_name: "test"
# Important: Don't quote this variable !
acme_staging: false
prometheus_enable_ingress: false
# A whitelist of applications that will be enabled.
enabled_applications:
# System components, necessary for the system to function.
......
......@@ -14,6 +14,7 @@
name: "prometheus-basic-auth"
data:
auth: "{{ ('admin:' + (prometheus_basic_auth | password_hash('apr_md5_crypt')) + '\n') | b64encode }}"
when: prometheus_enable_ingress is defined and prometheus_enable_ingress is true
- name: Create Kubernetes secret with prometheus settings
tags:
- config
......
......@@ -8,6 +8,7 @@ server:
persistentVolume:
existingClaim: "prometheus-server"
retention: "10d"
{% if prometheus_enable_ingress is defined and prometheus_enable_ingress %}
ingress:
enabled: true
annotations:
......@@ -21,6 +22,7 @@ server:
- secretName: prometheus-tls
hosts:
- "prometheus.{{ domain }}"
{% endif %}
serverFiles:
alerting_rules.yml:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment