Skip to content

golangapiserver job from app-autoscaler/3.0.0

Github source: c763e9d or master branch

Properties

autoscaler

apiserver

broker
password

password to authenticate with service broker

server
ca_cert

PEM-encoded CA certificate

catalog
dashboard_redirect_uri
port

Port where broker server will run

Default
6101
server_cert

PEM-encoded server certificate

server_key

PEM-encoded server key

username

username to authenticate with service broker

event_generator
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where eventGenerator is running

Default
eventgenerator.service.cf.internal
port

Port where eventGenerator will listen

Default
6105
health
port
Default
1080
hooks
post_start

Script to run after apiserver has started

Default
""
post_stop

Script to run after apiserver has stopped

Default
""
pre_start

Script to run before starting apiserver

Default
""
Example
|+
  #!/bin/bash
  echo "Going to start apiserver"
  echo "apiserver data directory is ${DATA_DIR}"
  echo "apiserver port is ${PORT}"
  echo "apiserver directory is ${PACKAGE_DIR}"
pre_stop

Script to run before stopping apiserver

Default
""
info
build

Autoscaler application build number

Default
3.0.0
description

Autoscaler application short description

Default
  Automatically increase or decrease the number of application instances based on a
    policy you define.
name

Name of the autoscaler application to be shown in /info path

Default
Autoscaler
support_url

Autoscaler application support page URL

Default
https://github.com/cloudfoundry/app-autoscaler
logging
level

the level of logging

Default
info
metrics_collector
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where metricsCollector is running

Default
metricscollector.service.cf.internal
port

Port where metricsCollector will listen

Default
6103
metrics_forwarder
host

Host where metricsforwarder is running

Default
autoscalermetrics.bosh-lite.com
public_api
server
ca_cert

PEM-encoded CA certificate

port

Port where broker server will run

Default
6102
server_cert

PEM-encoded server certificate

server_key

PEM-encoded server key

rate_limit
max_amount

The number of requests accepted by rate limit

Default
10
valid_duration

The rate limit evaluation duration

Default
1s
scaling_engine
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where scalingengine is running

Default
scalingengine.service.cf.internal
port

Port where scalingengine will listen

Default
6104
scheduler
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where scheduler is running

Default
autoscalerscheduler.service.cf.internal
port

Port where scheduler will listen

Default
6102
use_buildin_mode
Default
true

binding_db

address

IP address on which the bindingdb server will listen

Default
autoscalerpostgres.service.cf.internal
databases

The list of databases used in bindingdb database including name

db_scheme

Database scheme to be used to access bindingdb

Default
postgres
port

Port on which the bindingdb server will listen

roles

The list of database roles used in bindingdb database including name/password

sslmode

sslmode to connect to postgres server

Default
disable
tls
ca

PEM-encoded ca certificate of tls database server

Default
""

binding_db_connection_config

connection_max_lifetime
Default
60s
max_idle_connections
Default
10
max_open_connections
Default
100

cf

api

the Cloud Foundry API endpoint

client_id

the client id to log in cf

secret

the secret to log in cf

skip_ssl_validation

Flag to skip ssl validation to connect to CC and UAA

Default
false

changeloglock_timeout_seconds

Liquibase changelog lock timeout duration in seconds

Default
180

policy_db

address

IP address on which the policydb server will listen

Default
autoscalerpostgres.service.cf.internal
databases

The list of databases used in policydb database including name

db_scheme

Database scheme to be used to access policydb

Default
postgres
port

Port on which the policydb server will listen

roles

The list of database roles used in policydb database including name/password

sslmode

sslmode to connect to postgres server

Default
disable
tls
ca

PEM-encoded ca certificate of tls database server

Default
""

policy_db_connection_config

connection_max_lifetime
Default
60s
max_idle_connections
Default
10
max_open_connections
Default
100

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/golangapiserver/ directory (learn more).

  • bin/apiserver_ctl (from apiserver_ctl.erb)
  • bin/hooks/post-start.sh (from hooks/post-start.sh.erb)
  • bin/hooks/post-stop.sh (from hooks/post-stop.sh.erb)
  • bin/hooks/pre-start.sh (from hooks/pre-start.sh.erb)
  • bin/hooks/pre-stop.sh (from hooks/pre-stop.sh.erb)
  • bin/pre-start (from pre-start.erb)
  • config/apiserver.yml (from apiserver.yml.erb)
  • config/catalog.json (from catalog.json.erb)
  • config/certs/apiserver/ca.crt (from apiserver_ca.crt.erb)
  • config/certs/apiserver/server.crt (from apiserver_server.crt.erb)
  • config/certs/apiserver/server.key (from apiserver_server.key.erb)
  • config/certs/binding_db/ca.crt (from binding_db_ca.crt.erb)
  • config/certs/brokerserver/ca.crt (from brokerserver_ca.crt.erb)
  • config/certs/brokerserver/server.crt (from brokerserver.crt.erb)
  • config/certs/brokerserver/server.key (from brokerserver.key.erb)
  • config/certs/eventgenerator/ca.crt (from eventgenerator_ca.crt.erb)
  • config/certs/eventgenerator/client.crt (from eventgenerator_client.crt.erb)
  • config/certs/eventgenerator/client.key (from eventgenerator_client.key.erb)
  • config/certs/metricscollector/ca.crt (from metricscollector_ca.crt.erb)
  • config/certs/metricscollector/client.crt (from metricscollector_client.crt.erb)
  • config/certs/metricscollector/client.key (from metricscollector_client.key.erb)
  • config/certs/policy_db/ca.crt (from policy_db_ca.crt.erb)
  • config/certs/scalingengine/ca.crt (from scalingengine_ca.crt.erb)
  • config/certs/scalingengine/client.crt (from scalingengine_client.crt.erb)
  • config/certs/scalingengine/client.key (from scalingengine_client.key.erb)
  • config/certs/scheduler/ca.crt (from scheduler_ca.crt.erb)
  • config/certs/scheduler/client.crt (from scheduler_client.crt.erb)
  • config/certs/scheduler/client.key (from scheduler_client.key.erb)
  • config/info.json (from info.json.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.