Skip to content

Commit

Permalink
Adds route registrar to postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed Aug 14, 2024
1 parent e39d87a commit 9c8c16d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 74 deletions.
2 changes: 0 additions & 2 deletions ci/autoscaler/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ anchors:
operations/set-release-version.yml
operations/enable-metricsforwarder-via-syslog-agent.yml
operations/enable-scheduler-logging.yml
operations/disable-postgres-tls-config.yml
operations/use-cf-services.yml
app-autoscaler-ops-files-upgrade: &app-autoscaler-ops-files-upgrade
OPS_FILES: |
operations/add-releases.yml
Expand Down
1 change: 0 additions & 1 deletion ci/autoscaler/set-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ function main(){
export PIPELINE_NAME="app-autoscaler-release-${current_branch_without_slashes}"
set_pipeline "$PIPELINE_NAME"
pause_jobs "$PIPELINE_NAME"
unpause_job "$PIPELINE_NAME/set-pipeline"
fi

popd > /dev/null
Expand Down
71 changes: 0 additions & 71 deletions operations/disable-postgres-tls-config.yml

This file was deleted.

17 changes: 17 additions & 0 deletions operations/enable-nats-tls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,20 @@
value:
from: nats-tls
deployment: cf

- type: replace
path: /instance_groups/name=postgres/jobs/name=route_registrar/properties/nats?
value:
tls:
enabled: true
client_cert: ((/bosh-autoscaler/cf/nats_client_cert.certificate))
client_key: ((/bosh-autoscaler/cf/nats_client_cert.private_key))

- type: remove
path: /instance_groups/name=postgres/jobs/name=route_registrar/consumes/nats

- type: replace
path: /instance_groups/name=postgres/jobs/name=route_registrar/consumes/nats-tls?
value:
from: nats-tls
deployment: cf
14 changes: 14 additions & 0 deletions templates/app-autoscaler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,20 @@ instance_groups:
max_open_connections: 100
max_idle_connections: 10
connection_max_lifetime: 60s
- name: route_registrar
release: routing
consumes:
nats: { from: nats, deployment: cf }
properties:
route_registrar:
routes:
- name: autoscaler_postgres
registration_interval: 20s
port: 5432
tags:
component: autoscaler_postgres
uris:
- ((deployment_name))-postgres.((system_domain))

# Scalingengine Instance Group
- name: scalingengine
Expand Down

0 comments on commit 9c8c16d

Please sign in to comment.