Skip to content
Snippets Groups Projects
Commit 6d512ef1 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Merge branch 'remove_prometheus_enable_ingress' into 'master'

Remove prometheus_enable_ingress setting

See merge request openappstack/openappstack!410
parents f19df66a 8128a5de
No related branches found
No related tags found
No related merge requests found
...@@ -44,8 +44,6 @@ Additionally, if you want to re-use your old `settings.yaml` file, this data ...@@ -44,8 +44,6 @@ Additionally, if you want to re-use your old `settings.yaml` file, this data
needs to be added to it: needs to be added to it:
``` ```
prometheus_enable_ingress: false
backup: backup:
s3: s3:
# Disabled by default. To enable, change to `true` and configure the # Disabled by default. To enable, change to `true` and configure the
......
...@@ -331,8 +331,6 @@ def create(clus, args): # pylint: disable=too-many-branches ...@@ -331,8 +331,6 @@ def create(clus, args): # pylint: disable=too-many-branches
clus.acme_staging = True clus.acme_staging = True
if args.local_flux: if args.local_flux:
clus.local_flux = True clus.local_flux = True
if args.prometheus_enable_ingress:
clus.prometheus_enable_ingress = True
if args.create_droplet: if args.create_droplet:
clus.create_droplet(ssh_key_id=args.ssh_key_id, hostname=args.create_hostname) clus.create_droplet(ssh_key_id=args.ssh_key_id, hostname=args.create_hostname)
if args.verbose: if args.verbose:
......
...@@ -59,9 +59,6 @@ class Cluster: ...@@ -59,9 +59,6 @@ class Cluster:
self.local_flux = False self.local_flux = False
# Set this to False if the data needs to be (re)loaded from file # Set this to False if the data needs to be (re)loaded from file
self.data_loaded = False self.data_loaded = False
# Set this to true if you want to access prometheus from outside you cluster
# The prometheus api is protected by basic authentication
self.prometheus_enable_ingress = False
# Load data from inventory.yml and settings.yml # Load data from inventory.yml and settings.yml
if load_data: if load_data:
self.load_data() self.load_data()
...@@ -174,7 +171,6 @@ class Cluster: ...@@ -174,7 +171,6 @@ class Cluster:
settings['admin_email'] = 'admin@{0}'.format(self.domain) settings['admin_email'] = 'admin@{0}'.format(self.domain)
settings['flux']['local_flux'] = self.local_flux settings['flux']['local_flux'] = self.local_flux
settings['cluster_dir'] = self.cluster_dir settings['cluster_dir'] = self.cluster_dir
settings['prometheus_enable_ingress'] = self.prometheus_enable_ingress
# Configure apps to handle invalid certs i.e. from # Configure apps to handle invalid certs i.e. from
# Letsencrypt staging API # Letsencrypt staging API
...@@ -207,7 +203,6 @@ HOSTNAME={hostname} ...@@ -207,7 +203,6 @@ HOSTNAME={hostname}
FQDN={domain} FQDN={domain}
LOCAL_FLUX={local_flux} LOCAL_FLUX={local_flux}
KUBECONFIG={secret_dir}/kube_config_cluster.yml KUBECONFIG={secret_dir}/kube_config_cluster.yml
PROMETHEUS_ENABLE_INGRESS={prometheus_enable_ingress}
""" """
with open(self.dotenv_file, 'w') as stream: with open(self.dotenv_file, 'w') as stream:
...@@ -218,8 +213,7 @@ PROMETHEUS_ENABLE_INGRESS={prometheus_enable_ingress} ...@@ -218,8 +213,7 @@ PROMETHEUS_ENABLE_INGRESS={prometheus_enable_ingress}
hostname=self.hostname, hostname=self.hostname,
domain=self.domain, domain=self.domain,
local_flux=self.local_flux, local_flux=self.local_flux,
secret_dir=self.secret_dir, secret_dir=self.secret_dir
prometheus_enable_ingress=self.prometheus_enable_ingress
)) ))
log.info("Created %s", self.dotenv_file) log.info("Created %s", self.dotenv_file)
......
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