Skip to content

Commit 0b85f39

Browse files
committed
maint: reduce chatops containers to one
Deploy only one container of the chatops image onto the host. Having there is a very low volume of traffic and it is complicated
1 parent 4dab7d0 commit 0b85f39

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

chatops_deployment/ansible/roles/chatops/tasks/main.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,11 @@
5050
state: started
5151
restart: true
5252
ports:
53-
- "{{ item }}:3000"
53+
- "3030:3000"
5454
volumes:
5555
- /etc/chatops/config.yml:/usr/src/app/config.yml
5656
- /etc/chatops/secrets.yml:/usr/src/app/secrets.yml
5757
restart_policy: "always"
58-
loop:
59-
- 3030
60-
- 3031
61-
- 3032
62-
loop_control:
63-
index_var: count
6458

6559
- name: Copy filebeat external config
6660
become: true

chatops_deployment/ansible/roles/haproxy/templates/haproxy.cfg.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ backend ALERTMANAGER
7070
server alertmanager localhost:9093 check ssl verify required ca-file /etc/haproxy/ssl/alertmanager.crt
7171

7272
backend CHATOPS
73-
server chatops_0 localhost:3030 check
74-
server chatops_1 localhost:3031 check
75-
server chatops_2 localhost:3032 check backup
73+
server chatops localhost:3030 check
7674

7775
backend KIBANA
7876
server kibana localhost:5601 check ssl verify required ca-file /etc/haproxy/ssl/kibana.crt

0 commit comments

Comments
 (0)