mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Lock down Prometheus Alertmanager and NATS ports by default (#378)
* Stop exposing Alertmanager and NATS ports This commit stops exposing the Prometheus Alertmanager and NATS ports by default on Swarm. The respective sections are commented out with a note on re-enabling them. Signed-off-by: John McCabe <john@johnmccabe.net> * Revert queue-worker dev tag in yaml Signed-off-by: John McCabe <john@johnmccabe.net>
This commit is contained in:
parent
1aa6270fcc
commit
bc16d125bf
@ -45,8 +45,10 @@ services:
|
||||
- '-config.file=/alertmanager.yml'
|
||||
networks:
|
||||
- functions
|
||||
ports:
|
||||
- 9093:9093
|
||||
# Uncomment the following port mapping if you wish to expose the Prometheus
|
||||
# Alertmanager UI.
|
||||
# ports:
|
||||
# - 9093:9093
|
||||
deploy:
|
||||
placement:
|
||||
constraints: [node.role == manager]
|
||||
|
@ -27,9 +27,11 @@ services:
|
||||
|
||||
nats:
|
||||
image: nats-streaming:0.6.0
|
||||
ports:
|
||||
- 4222:4222
|
||||
- 8222:8222
|
||||
# Uncomment the following port mappings if you wish to expose the
|
||||
# NATS client and/or management ports
|
||||
# ports:
|
||||
# - 4222:4222
|
||||
# - 8222:8222
|
||||
command: "--store memory --cluster_id faas-cluster"
|
||||
networks:
|
||||
- functions
|
||||
@ -82,8 +84,10 @@ services:
|
||||
- '-config.file=/alertmanager.yml'
|
||||
networks:
|
||||
- functions
|
||||
ports:
|
||||
- 9093:9093
|
||||
# Uncomment the following port mapping if you wish to expose the Prometheus
|
||||
# Alertmanager UI.
|
||||
# ports:
|
||||
# - 9093:9093
|
||||
deploy:
|
||||
placement:
|
||||
constraints: [node.role == manager]
|
||||
|
@ -32,9 +32,11 @@ services:
|
||||
|
||||
nats:
|
||||
image: nats-streaming:0.6.0
|
||||
ports:
|
||||
- 4222:4222
|
||||
- 8222:8222
|
||||
# Uncomment the following port mappings if you wish to expose the
|
||||
# NATS client and/or management ports
|
||||
# ports:
|
||||
# - 4222:4222
|
||||
# - 8222:8222
|
||||
command: "--store memory --cluster_id faas-cluster"
|
||||
networks:
|
||||
- functions
|
||||
@ -99,8 +101,10 @@ services:
|
||||
- '-config.file=/alertmanager.yml'
|
||||
networks:
|
||||
- functions
|
||||
ports:
|
||||
- 9093:9093
|
||||
# Uncomment the following port mapping if you wish to expose the Prometheus
|
||||
# Alertmanager UI.
|
||||
# ports:
|
||||
# - 9093:9093
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
|
@ -59,8 +59,10 @@ services:
|
||||
- '-config.file=/alertmanager.yml'
|
||||
networks:
|
||||
- functions
|
||||
ports:
|
||||
- 9093:9093
|
||||
# Uncomment the following port mapping if you wish to expose the Prometheus
|
||||
# Alertmanager UI.
|
||||
# ports:
|
||||
# - 9093:9093
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
|
Loading…
x
Reference in New Issue
Block a user