From 7bb5a8de2ac925a3207761a184f8963ffe4f2e1e Mon Sep 17 00:00:00 2001 From: Siyuan Zhang Date: Thu, 1 Jul 2021 10:50:29 +0800 Subject: [PATCH] Add instructions for mount volume in mac (#457) --- docs/getting_started.rst | 4 ++++ docs/zh/getting_started.rst | 2 ++ 2 files changed, 6 insertions(+) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 98c0aaa7677b..315a940fea59 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -78,6 +78,10 @@ For macOS, the session needs to establish with the LoadBalancer service type (wh sess = graphscope.session(k8s_volumes=k8s_volumes, k8s_service_type="LoadBalancer") +Also note that the value `data.field.path` is the hostpath in your Kubernetes hosts. With Docker-Desktop on Mac, you need to first add the path into the shared directories of the docker, which is normally the `/Users`. +For more detailed instructions, please refer to `how to mount hostpath using docker for mac kubernetes `_. + + A :ref:`Session` tries to launch a coordinator, which is the entry for the back-end engines. The coordinator manages a cluster of resources (k8s pods), diff --git a/docs/zh/getting_started.rst b/docs/zh/getting_started.rst index 5f6be818133a..5ef93138281f 100644 --- a/docs/zh/getting_started.rst +++ b/docs/zh/getting_started.rst @@ -69,6 +69,8 @@ sess = graphscope.session(k8s_volumes=k8s_volumes, k8s_service_type="LoadBalancer") +另外,注意 `data.field.path` 是 Kubernetes 主机上的路径,当在 Mac 上使用 Docker-Desktop 时,需要首先将此路径加入到 Docker +的共享目录中,通常为 `/Users`。更详细的指引请参看 `how to mount hostpath using docker for mac kubernetes `_. 会话(:ref:`Session`)的建立过程中,首选会在背后尝试拉起一个 `coordinator` 作为后端引擎的入口。 该 `coordinator` 负责管理该次会话的所有资源(k8s pods),以及交互式查询、图分析、图学习引擎的生命周期。