| 1 |
Helm Chart for Celery |
| 2 |
===================== |
| 3 |
|
| 4 |
This helm chart can be used for deploying Celery in local or a kubernetes server. |
| 5 |
|
| 6 |
It contains following main folders/files: |
| 7 |
|
| 8 |
:: |
| 9 |
|
| 10 |
helm-chart |
| 11 |
├── Chart.yaml |
| 12 |
├── README.rst |
| 13 |
├── templates |
| 14 |
│ ├── _helpers.tpl |
| 15 |
│ ├── configmap.yaml |
| 16 |
│ ├── deployment.yaml |
| 17 |
│ ├── secret.yaml |
| 18 |
│ └── serviceaccount.yaml |
| 19 |
└── values.yaml |
| 20 |
|
| 21 |
The most important file here will be ``values.yaml``. |
| 22 |
This will be used for setting/altering parameters, most of the parameters are annotated inside ``values.yaml`` with comments. |
| 23 |
|
| 24 |
Deploying on Cluster: |
| 25 |
-------------------- |
| 26 |
|
| 27 |
If you want to setup and test on local, check out: `setting up on local`_ |
| 28 |
|
| 29 |
To install on kubernetes cluster run following command from root of project: |
| 30 |
|
| 31 |
:: |
| 32 |
|
| 33 |
helm install celery helm-chart/ |
| 34 |
|
| 35 |
You can also setup environment-wise value files, for example: ``values_dev.yaml`` for ``dev`` env, |
| 36 |
then you can use following command to override the current ``values.yaml`` file's parameters to be environment specific: |
| 37 |
|
| 38 |
:: |
| 39 |
|
| 40 |
helm install celery helm-chart/ --values helm-chart/values_dev.yaml |
| 41 |
|
| 42 |
To upgrade an existing installation of chart you can use: |
| 43 |
|
| 44 |
:: |
| 45 |
|
| 46 |
helm upgrade --install celery helm-chart/ |
| 47 |
|
| 48 |
or |
| 49 |
|
| 50 |
helm upgrade --install celery helm-chart/ --values helm-chart/values_dev.yaml |
| 51 |
|
| 52 |
|
| 53 |
You can uninstall the chart using helm: |
| 54 |
|
| 55 |
:: |
| 56 |
|
| 57 |
helm uninstall celery |
| 58 |
|
| 59 |
.. _setting up on local: |
| 60 |
|
| 61 |
Setting up on local: |
| 62 |
-------------------- |
| 63 |
To setup kubernetes cluster on local use the following link: |
| 64 |
|
| 65 |
- k3d_ |
| 66 |
- `Colima (recommended if you are on MacOS)`_ |
| 67 |
|
| 68 |
.. _`k3d`: https://k3d.io/v5.7.3/ |
| 69 |
.. _`Colima (recommended if you are on MacOS)`: https://github.com/abiosoft/colima?tab=readme-ov-file#kubernetes |
| 70 |
|
| 71 |
You will also need following tools: |
| 72 |
|
| 73 |
- `helm cli`_ |
| 74 |
- `kubectl`_ |
| 75 |
|
| 76 |
.. _helm cli: https://helm.sh/docs/intro/install/ |
| 77 |
.. _kubectl: https://kubernetes.io/docs/tasks/tools/ |