Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs for Istio installation #150

Merged
merged 4 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/self-hosted-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
32 changes: 31 additions & 1 deletion docs/self-hosted-server/minikube.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -107,6 +113,30 @@ Then, update your local repository with the following command:
$ helm repo update
```

### Setup MongoDB pod and service
xet-a marked this conversation as resolved.
Show resolved Hide resolved

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 and it avoids errors during Yorkie server provisioning.

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.

### Install Yorkie cluster with Helm chart

Now you have added yorkie-team Helm chart repository in your local repository, you can install Yorkie cluster with Helm chart.
Expand Down