vieter: deploy agents globally
parent
7d3c4cb6e5
commit
474754f18d
|
@ -31,7 +31,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- 'data:/data'
|
- 'data:/data'
|
||||||
|
|
||||||
agent-1:
|
agent:
|
||||||
image: 'chewingbever/vieter:dev'
|
image: 'chewingbever/vieter:dev'
|
||||||
command: vieter agent
|
command: vieter agent
|
||||||
user: root
|
user: root
|
||||||
|
@ -40,11 +40,7 @@ services:
|
||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
mode: 'replicated'
|
mode: 'global'
|
||||||
replicas: 1
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- 'node.hostname==epsilon'
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key'
|
- 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key'
|
||||||
|
@ -57,32 +53,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||||
|
|
||||||
agent-2:
|
|
||||||
image: 'chewingbever/vieter:dev'
|
|
||||||
command: vieter agent
|
|
||||||
user: root
|
|
||||||
|
|
||||||
healthcheck:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
mode: 'replicated'
|
|
||||||
replicas: 1
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- 'node.hostname==gamma'
|
|
||||||
|
|
||||||
environment:
|
|
||||||
- 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key'
|
|
||||||
- 'VIETER_LOG_LEVEL=DEBUG'
|
|
||||||
- 'VIETER_ADDRESS=https://arch.r8r.be'
|
|
||||||
- 'VIETER_MAX_CONCURRENT_BUILDS=1'
|
|
||||||
- 'VIETER_ARCH=x86_64'
|
|
||||||
secrets:
|
|
||||||
- vieter_api_key
|
|
||||||
volumes:
|
|
||||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
public:
|
public:
|
||||||
external: true
|
external: true
|
||||||
|
|
Loading…
Reference in New Issue