Skip to content

Commit

Permalink
jaeger: use ops node label constraint (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryHrytsuk authored Sep 25, 2024
1 parent 4f28351 commit e760de7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 30 deletions.
14 changes: 2 additions & 12 deletions services/jaeger/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ up-letsencrypt-dns: .init .env ${TEMP_COMPOSE}-letsencrypt-dns
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE}-letsencrypt-dns ${STACK_NAME}

.PHONY: up-dalco ## Deploys jaeger stack for Dalco Cluster
up-dalco: .init .env ${TEMP_COMPOSE}-dalco
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE}-dalco ${STACK_NAME}
up-dalco: up

.PHONY: up-aws ## Deploys jaeger stack for aws
up-aws: .init .env ${TEMP_COMPOSE}-aws ## Deploys jaeger stack in aws
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE}-aws ${STACK_NAME}

.PHONY: up-master ## Deploys jaeger stack for master Cluster
up-master: .init .env ${TEMP_COMPOSE}-master
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE}-master ${STACK_NAME}
up-master: up

.PHONY: up-public ## Deploys jaeger stack for public acess deploy
up-public: up-dalco
Expand All @@ -55,14 +53,6 @@ ${TEMP_COMPOSE}-letsencrypt-http: docker-compose.yml docker-compose.letsencrypt.
${TEMP_COMPOSE}-letsencrypt-dns: docker-compose.yml docker-compose.letsencrypt.dns.yml
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash $< docker-compose.letsencrypt.dns.yml > $@

.PHONY: ${TEMP_COMPOSE}-dalco
${TEMP_COMPOSE}-dalco: docker-compose.yml docker-compose.dalco.yml
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash $< docker-compose.dalco.yml > $@

.PHONY: ${TEMP_COMPOSE}-master
${TEMP_COMPOSE}-master: docker-compose.yml docker-compose.master.yml
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash $< docker-compose.master.yml > $@

.PHONY: ${TEMP_COMPOSE}-aws
${TEMP_COMPOSE}-aws: docker-compose.yml docker-compose.aws.yml
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash $< docker-compose.aws.yml > $@
4 changes: 0 additions & 4 deletions services/jaeger/docker-compose.aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ services:
jaeger:
dns: # Add this always for AWS, otherwise we get "No such image: " for docker services
8.8.8.8
deploy:
placement:
constraints:
- node.labels.jaeger==true
7 changes: 0 additions & 7 deletions services/jaeger/docker-compose.dalco.yml

This file was deleted.

7 changes: 0 additions & 7 deletions services/jaeger/docker-compose.master.yml

This file was deleted.

7 changes: 7 additions & 0 deletions services/jaeger/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ services:
environment:
MEMORY_MAX_TRACES: 10000
deploy:
placement:
constraints:
- node.labels.ops==true
labels:
- traefik.enable=true
- traefik.docker.network=${PUBLIC_NETWORK}
Expand All @@ -39,6 +42,10 @@ services:
hostname: "{{.Node.Hostname}}-{{.Task.Slot}}"
command:
- "--config=/etc/otel/config.yaml"
deploy:
placement:
constraints:
- node.labels.ops==true
ports:
- "4318:4318" # OTLP HTTP receiver
networks:
Expand Down

0 comments on commit e760de7

Please sign in to comment.