aboutsummaryrefslogtreecommitdiffstats
path: root/deployments/helm/v2/emco/README.md
blob: 70cbfcdedacbe7cad7f3e79f2bf1adef154b09b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#################################################################
# EMCO v2 helm charts
#################################################################

EMCO Helm charts include charts for EMCO microservices along with MongoDb, etcd, Fluentd


### Steps to generate and install packages
**1. Run make file to package all the required chart**

`$ make clean`

`$ make all`

Pacakges helm charts in tar.gz format. All packages are in **dist/packages** directory and the package of intrest are:

   File      | Description |
  | ----------- | ----------- |
  | **emco-db-0.1.0.tgz**      | Includes database packages for mongo & etcd       |
  | **emco-services-0.1.0.tgz**   | Includes packages for all EMCO services like orchestrator, ncm, rsync etc        |
  | **emco-tools-0.1.0.tgz**   | Tools like Fluentd to be used with EMCO        |
  | **emco-0.1.0.tgz**   | Includes all charts including database, all services and tools        |


**2. Deploy EMCO Packages for Databases and Services**

`$ helm install dist/packages/emco-db-0.1.0.tgz --name emco-db --namespace emco`

`$ helm install dist/packages/emco-services-0.1.0.tgz --name emco-services --namespace emco`

**3. Deploy tools (Optional)**

`$ helm install dist/packages/emco-tools-0.1.0.tgz --name emco-tools --namespace emco`

NOTE: Deploy the Chart emco-0.1.0.tgz to deploy all packages including database, services and tools.

`$ helm install dist/packages/emco-0.1.0.tgz --name emco --namespace emco`


**4. To check logs of the different Microservices check fluentd logs**

`kubectl logs emco-tools-fluentd-0 -n emco | grep orchestrator`


**5. Delete all packages**

`$ helm delete emco-services --purge`

`$ helm delete emco-db --purge`

Optional if tools were installed

`$ helm delete emco-tools --purge`

NOTE: If the Chart emco-0.1.0.tgz was deployed

`$ helm delete emco --purge`


**6. Delete local helm repo**

`make repo-stop`

### Known Issues

After deleting the db package and before installing the package again following error happens:

`Error: release emco-db failed: object is being deleted: persistentvolumes "emco-db-emco-etcd-data-0" already exists`

Workarounds:

* remove the  finalizers section using `kubectl edit persistentvolumes emco-db-emco-etcd-data-0`
* or, if appropriate, delete the entire namespace using `kubectl delete namespace emco`