infrastructure/k8s/roles/agola/templates/config.yml.j2

87 lines
3.2 KiB
Text
Raw Normal View History

2022-09-11 16:49:31 +00:00
---
apiVersion: v1
kind: Secret
metadata:
name: agola
stringData:
config.yml: |
gateway:
# The api url that clients will call
# Change this to the exposed "agola" service IP
apiExposedURL: "https://ci.{{ domain }}"
# The web interface url that clients will use
# Change this to the exposed "agola" service IP
webExposedURL: "https://ci.{{ domain }}"
runserviceURL: "http://agola-internal:4000"
configstoreURL: "http://agola-internal:4002"
gitserverURL: "http://agola-internal:4003"
web:
listenAddress: ":8000"
tokenSigning:
# hmac or rsa (it possible use rsa)
method: hmac
# key to use when signing with hmac
key: DeerahXi8iChoh6VohG9to9vo
# paths to the private and public keys in pem encoding when using rsa signing
#privateKeyPath: /path/to/privatekey.pem
#publicKeyPath: /path/to/public.pem
adminToken: "{{ agola.adminToken }}"
scheduler:
runserviceURL: "http://agola-internal:4000"
notification:
webExposedURL: "https://ci.{{ domain }}"
runserviceURL: "http://agola-internal:4000"
configstoreURL: "http://agola-internal:4002"
db:
# example with a postgres db
type: sqlite3
# connString: "postgres://{{ agola.dbUser }}:{{ agola.dbPassword }}@default-postgres-postgresql.postgres.svc.cluster.local:5432/agola_notification?sslmode=disable"
connString: "/opt/agola/notification/db/db.db"
configstore:
dataDir: /mnt/agola/local/configstore
db:
# example with a postgres db
type: sqlite
# connString: "postgres://{{ agola.dbUser }}:{{ agola.dbPassword }}@default-postgres-postgresql.postgres.svc.cluster.local:5432/agola_configstore?sslmode=disable"
connString: "/opt/agola/configstore/db/db.db"
objectStorage:
type: s3
endpoint: "http://minio.minio.svc.cluster.local:9000"
bucket: agola-configstore
accessKey: "{{ minio.rootUser }}"
secretAccessKey: "{{ minio.rootPassword }}"
web:
listenAddress: ":4002"
runservice:
# debug: true
dataDir: /mnt/agola/local/runservice
db:
type: sqlite
# connString: "postgres://{{ agola.dbUser }}:{{ agola.dbPassword }}@default-postgres-postgresql.postgres.svc.cluster.local:5432/agola_runservice?sslmode=disable"
connString: "/opt/agola/runservice/db/db.db"
objectStorage:
type: s3
# example with minio
endpoint: "http://minio.minio.svc.cluster.local:9000"
bucket: agola-runservice
accessKey: "{{ minio.rootUser }}"
secretAccessKey: "{{ minio.rootPassword }}"
web:
listenAddress: ":4000"
executor:
dataDir: /mnt/agola/local/executor
# The directory containing the toolbox compiled for the various supported architectures
toolboxPath: ./bin
runserviceURL: "http://agola-internal:4000"
web:
listenAddress: ":4001"
activeTasksLimit: 2
driver:
type: kubernetes
allowPrivilegedContainers: true
gitserver:
dataDir: /mnt/agola/local/gitserver
gatewayURL: "http://agola-internal:8000"
web:
listenAddress: ":4003"