diff --git a/docs/self-hosted-server.mdx b/docs/self-hosted-server.mdx index 48306c1..531ac38 100644 --- a/docs/self-hosted-server.mdx +++ b/docs/self-hosted-server.mdx @@ -13,8 +13,6 @@ To run a Yorkie Server, you need to install the CLI. If you haven't installed it Let's start a Server with the CLI. You can start a Server with the following command: -```bash - ```bash $ yorkie server diff --git a/docs/self-hosted-server/minikube.mdx b/docs/self-hosted-server/minikube.mdx index 281520f..86cb900 100644 --- a/docs/self-hosted-server/minikube.mdx +++ b/docs/self-hosted-server/minikube.mdx @@ -62,7 +62,13 @@ After ingress addons are enabled, you will see the following output: After Minikube is configured, you need to install Istio for Yorkie cluster. Yorkie cluster uses Istio for L7 load balancing and traffic management. -Install Istio with the following command: +First, create the `yorkie` namespace with the following command: + +```bash +$ kubectl create namespace yorkie +``` + +Then, install Istio with the following command: ```bash $ istioctl install -f <(curl -s https://raw.githubusercontent.com/yorkie-team/yorkie/main/build/charts/yorkie-cluster/istio-operator.yaml) @@ -91,6 +97,30 @@ Making this installation the default for injection and validation. Thank you for installing Istio 1.17. Please take a few minutes to tell us about your install/upgrade experience! https://forms.gle/hMHGiwZHPU7UQRWe9 ``` +### Setup MongoDB pod and service + +Before installing the Yorkie cluster with Helm chart, you need to set up a MongoDB pod and expose it as a service. This is crucial since internal MongoDB installation is no longer provided. + +First, create the `mongodb` namespace with the following command: + +```bash +$ kubectl create namespace mongodb +``` + +Then, create a MongoDB pod named `mongodb` in the `mongodb` namespace with the following command: + +```bash +$ kubectl run mongodb --image=mongo:latest --port=27017 -n mongodb +``` + +Next, expose the MongoDB pod as a service to allow other pods to access it with the following command: + +```bash +$ kubectl expose pod mongodb --port=27017 --target-port=27017 --name=mongodb --type=ClusterIP -n mongodb +``` + +By following these steps, you ensure that the MongoDB pod is running and accessible to other pods within the cluster. + ### Add yorkie-team Helm chart in your local repository After Istio is installed, you need to add yorkie-team Helm chart repository in your local repository to install Yorkie cluster.