Skip to content

Commit

Permalink
Comment CSGHUB_WITH_K8S and set disable default
Browse files Browse the repository at this point in the history
  • Loading branch information
mason authored and wayneliu0019 committed Jan 14, 2025
1 parent 435d401 commit fae423a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker-compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ SPACE_APP_INTERNAL_PORT="30541"
# Kubernetes Cluster Configuration
####################################################################################
## If you want to use k8s cluster, you should set this to 1.
CSGHUB_WITH_K8S=0
# CSGHUB_WITH_K8S=1
## If using Space/Finetune/Inference/Model Evaluation/Dataflow functions and so on.
KUBE_CONFIG_DIR="/root/.kube"

Expand Down
10 changes: 5 additions & 5 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ services:
privileged: true
restart: always
deploy:
replicas: ${CSGHUB_WITH_K8S:-1}
replicas: ${CSGHUB_WITH_K8S:-0}
logging:
driver: fluentd
options:
Expand Down Expand Up @@ -334,7 +334,7 @@ services:
- ${KUBE_CONFIG_DIR}:/root/.kube:r
restart: always
deploy:
replicas: ${CSGHUB_WITH_K8S:-1}
replicas: ${CSGHUB_WITH_K8S:-0}
logging:
driver: fluentd
options:
Expand Down Expand Up @@ -393,7 +393,7 @@ services:
privileged: true
restart: always
deploy:
replicas: ${CSGHUB_WITH_K8S:-1}
replicas: ${CSGHUB_WITH_K8S:-0}
logging:
driver: fluentd
options:
Expand Down Expand Up @@ -569,7 +569,7 @@ services:
restart: always
privileged: true
deploy:
replicas: ${CSGHUB_WITH_K8S:-1}
replicas: ${CSGHUB_WITH_K8S:-0}
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "2375" ]
interval: 1s
Expand Down Expand Up @@ -607,7 +607,7 @@ services:
- ./logs/csghub_space_builder:/opt/data/logs
restart: always
deploy:
replicas: ${CSGHUB_WITH_K8S:-1}
replicas: ${CSGHUB_WITH_K8S:-0}
logging:
driver: fluentd
options:
Expand Down

0 comments on commit fae423a

Please sign in to comment.