-
Notifications
You must be signed in to change notification settings - Fork 0
/
zerops.yml
92 lines (90 loc) · 3.32 KB
/
zerops.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
zerops:
# Kibana
- setup: kibana
build:
deployFiles:
- kibana/kibana.yml
deploy:
readinessCheck:
httpGet:
path: /
port: 5601
run:
os: ubuntu
base: [email protected]
ports:
- port: 5601
httpSupport: true
prepareCommands:
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
- echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
- sudo apt-get update && sudo apt-get install kibana
- sudo apt-get autoremove && sudo apt-get clean # Make runtime image smaller.
envReplace:
delimiter: '%%'
target:
- kibana/kibana.yml
initCommands:
- sudo cp -f kibana/kibana.yml /etc/kibana/kibana.yml
- sudo chown -R kibana /etc/kibana
- sudo systemctl start kibana
start: zsc noop --silent
# Logstash
- setup: logstash
build:
deployFiles:
- logstash/logstash.yml
- logstash/zerops-syslog.conf
run:
os: ubuntu
base: [email protected]
ports:
- port: 1514
protocol: udp
- port: 1514
protocol: tcp
prepareCommands:
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
- echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
- sudo apt-get update && sudo apt-get install logstash
- sudo apt-get autoremove && sudo apt-get clean # Make runtime image smaller.
envReplace:
delimiter: '%%'
target:
- logstash/zerops-syslog.conf
initCommands:
- sudo cp -f logstash/zerops-syslog.conf /etc/logstash/conf.d/zerops-syslog.conf
- sudo cp -f logstash/logstash.yml /etc/logstash/logstash.yml
- sudo chown -R logstash /etc/logstash
- sudo systemctl start logstash
start: zsc noop --silent
# APM Server
- setup: apmserver
build:
deployFiles:
- apm-server/apm-server.yml
deploy:
readinessCheck:
httpGet:
path: /
port: 8200
run:
os: ubuntu
base: [email protected]
ports:
- port: 8200
httpSupport: true
prepareCommands:
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
- echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
- sudo apt-get update && sudo apt-get install apm-server
- sudo apt-get autoremove && sudo apt-get clean # Make runtime image smaller.
envReplace:
delimiter: '%%'
target:
- apm-server/apm-server.yml
initCommands:
- sudo cp -f apm-server/apm-server.yml /etc/apm-server/apm-server.yml
- sudo chown -R apm-server /etc/apm-server
- sudo systemctl start apm-server
start: zsc noop --silent