forked from uselagoon/lagoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lagoon.yml
59 lines (53 loc) · 1.61 KB
/
.lagoon.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
docker-compose-yaml: docker-compose.yaml
additional-yaml:
secrets:
path: .lagoon.secrets.yaml
command: create
ignore_error: true
logs-db-secrets:
path: .lagoon.logs-db-secrets.yaml
command: create
ignore_error: true
keycloak-secrets:
path: .lagoon.keycloak-secrets.yaml
command: create
ignore_error: true
harbor-secrets:
path: .lagoon.harbor-secrets.yaml
command: create
ignore_error: true
tasks:
# pre-rollout:
# - run:
# name: 'disable shard allocation on elasticsearch and run synced flush' # see https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-upgrade.html
# command: |
# es-curl PUT _cluster/settings -d '{"persistent":{"cluster.routing.allocation.enable":"none"}}'
# es-curl POST _flush/synced
# service: logs-db
post-rollout:
- run:
name: update database schema
command: /rerun_initdb.sh
service: api-db
- run:
name: 'enable shard allocation on elasticsearch'
command: es-curl PUT _cluster/settings -d '{"persistent":{"cluster.routing.allocation.enable":null}}'
service: logs-db
environments:
master:
types:
logs-db: elasticsearch-cluster
logs-collector: custom
templates:
logs-db: services/logs-db/.lagoon.cluster.yml
logs-forwarder: services/logs-forwarder/.lagoon.multi.yml
rollouts:
logs-db: statefulset
logs-forwarder: statefulset
develop:
types:
logs-db: elasticsearch-cluster
templates:
logs-db: services/logs-db/.lagoon.cluster.yml
rollouts:
logs-db: statefulset