oc-k8s/README.md

73 lines
1.6 KiB
Markdown
Raw Normal View History

2024-11-28 11:09:51 +01:00
This package defines an Helm chart for kubernetes based opencloud services deployment.
It can be used to fully deploy opencloud in a development/lighweight kubernetes deployment, for quick testing
or to ease opencloud dependencies (dex, mongo, mongo-express, ...) deployment.
Kind (https://kind.sigs.k8s.io/) is used here as a lightweight kubernetes deployment. Obviously, any kubenetes compliant
environment is a legitimate target.
2025-01-22 14:21:31 +01:00
# Locally built microservices deployment procedure
2024-11-28 11:09:51 +01:00
2025-01-22 14:21:31 +01:00
## Clone the repository
```
git clone https://cloud.o-forge.io/plm/oc-k8s.git
```
## Install kind
2024-11-28 11:09:51 +01:00
Follow instructions here https://kind.sigs.k8s.io/
2025-01-22 14:21:31 +01:00
## Install helm
2024-11-28 11:09:51 +01:00
Download suitable helm client here https://helm.sh/docs/intro/install/
2025-01-22 14:21:31 +01:00
## Fire up a kind cluster
2024-11-28 11:09:51 +01:00
2025-01-22 14:21:31 +01:00
Execute following script to create a single node development k8s cluster
2024-11-28 11:09:51 +01:00
```
create_kind_cluster.sh
```
It will create a *opencloud* docker container running kubernetes services.
2025-01-22 14:21:31 +01:00
## Clone all the microservices repositories taking part of the opencloud environment
Execute following script to clone all the needed parts:
```
clone_opencloud_microservices.sh
```
## Build everything
You need to build and publish all the opencloud microservices images in the kind cluster before deploying the Helm package.
Proceed as following:
```
build_opencloud_microservices.sh
```
## Deploy the opencloud chart
2024-11-28 11:09:51 +01:00
```
install_development.sh
```
2025-01-22 14:21:31 +01:00
## Hostname settings
Edit your /etc/hosts file, and add following line:
```
127.0.0.1 beta.opencloud.com
```
## Done
Everything should be operational now, go to http://beta.opencloud.com and enjoy the ride
# Prebuilt microservices deployment procedure
TODO