服务的管理

卸载服务

docker run mesosphere/janitor /janitor.py -r <service_name>-role -p <service_name>-principal -z dcos-service-<service_name>

you may still use `dcos package uninstall <framework-name>` to uninstall the framework, probably.

If that doesn’t work, then you’ll have to use the `/teardown` endpoint.

You may need an auth_token for the janitor.

to do that run `docker run mesosphere/janitor /janitor.py -r <service_name>-role -p <service_name>-principal -z dcos-service-<service_name> --auth_token=<token>`

dcos config show core.dcos_acs_token

Cassandra default:

docker run mesosphere/janitor /janitor.py -r cassandra-role -p cassandra-principal -z dcos-service-cassandra

HDFS default:

docker run mesosphere/janitor /janitor.py -r hdfs-role -p hdfs-principal -z dcos-service-hdfs

Kafka default:

docker run mesosphere/janitor /janitor.py -r kafka-role -p kafka-principal -z dcos-service-kafka

Custom values:

docker run mesosphere/janitor /janitor.py -r <custom_role> -p <custom_principal> -z dcos-service-<custom_service_name>

服务的自动更新

可以将服务配置保存到Git仓库(Gitlab)中,当服务配置发生变更时,可以使用Gitlab CI 或 Jenkins的任务部署变更的配置并调用Marathon的API重新启动服务。

服务的无宕机部署

关于服务的无宕机部署请参考基于DC/OS的持续部署章节。

results matching ""

    No results matching ""