Skip to content
Snippets Groups Projects

Issue #3273962: Describe instructions to deploy Cloud Orchestrator on a K8s cluster

Merged Issue #3273962: Describe instructions to deploy Cloud Orchestrator on a K8s cluster
All threads resolved!
Merged Tomohiro Ono requested to merge issue/cloud-3273962:3273962-describe-instructions-to into 5.x
All threads resolved!
+ 59
0
USAGE INSTRUCTIONS
==================
**1. Build a Cloud Orchestrator image**
```
$ git clone https://git.drupalcode.org/project/cloud.git
$ cd cloud/deployments/kubernetes
$ docker image build -t cloud_orchestrator:latest .
```
**2. Push the image to your Docker repository**
```
$ docker image tag cloud_orchestrator:latest your/repository:latest
$ docker image push your/repository:latest
```
**3. Edit `cloud_orchestrator.yml`**
* [Line 18- 24](https://git.drupalcode.org/project/cloud/-/blob/5.x/deployments/kubernetes/cloud_orchestrator.yml#L18-24): Set your usernames, passwords, e-mail address and database name
* [Line 113](https://git.drupalcode.org/project/cloud/-/blob/5.x/deployments/kubernetes/cloud_orchestrator.yml#L113): Set `your/repository:latest`
**4. Apply `cloud_orchestrator.yml` to your K8s cluster**
```
$ kubectl apply -f cloud_orchestrator.yml
```
**5. (Optional) Add a load balancer to access Cloud Orchestrator from your browser**
If you are using EKS, you can add a load balancer to access Cloud Orchestrator
from your browser as follows. Initially, this load balancer accepts all inbound
traffic. To restrict access to Cloud Orchestrator, change the security group
associated with that load balancer.
```
$ kubectl expose service cloud_orchestrator \
--namespace=cloud_orchestrator \
--type=LoadBalancer \
--name=cloud_orchestrator-lb
```
**6. Remove Cloud Orchestrator from your K8s cluster**
```
$ kubectl delete -f cloud_orchestrator.yml
```
`cloud_orchestrator.yml` installs Cloud Orchestrator and stores MariaDB database
on a filesystem of one of the K8s nodes via PersistentVolumes of the type
hostPath. When these PersistentVolumes are deleted, files stored in the node's
filesystem are NOT deleted. If you want to delete them, log in to the node and
execute the following command:
* Cloud Orchestrator
- `rm -r /var/www/cloud_orchestrator`
* MariaDB
- `rm -r /var/cloud_orchestrator/mysql`
Loading