Update K8S to include an auto generator of values template
This commit is contained in:
66
README.md
66
README.md
@@ -8,42 +8,63 @@ environment is a legitimate target.
|
||||
|
||||
# Locally built microservices deployment procedure
|
||||
|
||||
## Clone the repository
|
||||
## Install OC-K8S
|
||||
|
||||
```
|
||||
git clone https://cloud.o-forge.io/plm/oc-k8s.git
|
||||
sudo cp oc-k8s.sh /usr/bin/oc-k8s
|
||||
sudo chmod +x /usr/bin/oc-k8s
|
||||
```
|
||||
|
||||
## Install kind
|
||||
|
||||
Follow instructions here https://kind.sigs.k8s.io/
|
||||
|
||||
or
|
||||
|
||||
```
|
||||
go install sigs.k8s.io/kind@v0.30.0 && kind create cluster
|
||||
```
|
||||
|
||||
## Install helm
|
||||
|
||||
Download suitable helm client here https://helm.sh/docs/intro/install/
|
||||
|
||||
## Resume for a first start
|
||||
```
|
||||
oc-k8s start
|
||||
```
|
||||
or
|
||||
```
|
||||
./oc-k8s.sh start
|
||||
```
|
||||
To stop :
|
||||
```
|
||||
oc-k8s stop
|
||||
```
|
||||
or
|
||||
```
|
||||
./oc-k8s.sh start
|
||||
```
|
||||
## Fire up a kind cluster
|
||||
|
||||
Execute following script to create a single node development k8s cluster
|
||||
|
||||
```
|
||||
create_kind_cluster.sh
|
||||
```
|
||||
|
||||
WARNING APACHE & NGINX ARE NOT RUNNING:
|
||||
- `sudo /etc/init.d/apache2 stop`
|
||||
- `sudo nginx -s stop`
|
||||
|
||||
|
||||
Execute following script to create a single node development k8s cluster
|
||||
|
||||
```
|
||||
oc-k8s create cluster
|
||||
```
|
||||
or
|
||||
```
|
||||
./oc-k8s.sh create cluster
|
||||
```
|
||||
|
||||
It will create a *opencloud* docker container running kubernetes services.
|
||||
|
||||
## 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.
|
||||
@@ -51,13 +72,21 @@ You need to build and publish all the opencloud microservices images in the kind
|
||||
Proceed as following:
|
||||
|
||||
```
|
||||
build_opencloud_microservices.sh
|
||||
oc-k8s build services [branch(default:mail)] [target(default:all)]
|
||||
```
|
||||
or
|
||||
```
|
||||
./oc-k8s.sh build services [branch(default:mail)] [target(default:all)]
|
||||
```
|
||||
|
||||
## Deploy the opencloud chart
|
||||
|
||||
```
|
||||
install_development.sh
|
||||
oc-k8s create helm [env(default:dev)]
|
||||
```
|
||||
or
|
||||
```
|
||||
./oc-k8s.sh create helm [env(default:dev)]
|
||||
```
|
||||
|
||||
Feel free to modify/create a new opencloud/dev-values.yaml. Provided setup should work out of the box, but is not suitable for production usage.
|
||||
@@ -74,9 +103,6 @@ Edit your /etc/hosts file, and add following line:
|
||||
|
||||
Everything should be operational now, go to http://beta.opencloud.com and enjoy the ride
|
||||
|
||||
# Prebuilt microservices deployment procedure
|
||||
|
||||
TODO
|
||||
|
||||
# First steps
|
||||
|
||||
|
||||
Reference in New Issue
Block a user