mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-22 07:56:49 +00:00
feat: add placement constraints for open_webui service in deployment
This commit is contained in:
@@ -40,6 +40,9 @@ services:
|
|||||||
- net
|
- net
|
||||||
- traefik-public
|
- traefik-public
|
||||||
deploy:
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.open_webui.open_webui == true
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.swarm.network=traefik-public
|
- traefik.swarm.network=traefik-public
|
||||||
@@ -68,6 +71,9 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
deploy:
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.open_webui.open_webui == true
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
@@ -83,6 +89,9 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
deploy:
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.open_webui.open_webui == true
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
|
|||||||
Reference in New Issue
Block a user