helm.adoc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. [#install-helm]
  2. = Installation on Kubernetes with Helm
  3. Helm makes installing OliveTin on Kubernetes very easy, the official chart is hosted on Artifact Hub.
  4. https://artifacthub.io/packages/search?repo=olivetin[image:https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/olivetin[Artifact Hub]]
  5. == Requirements
  6. === Prerequisites
  7. * [x] A Kubernetes cluster setup and running
  8. * [x] Kubernetes client installed and authenticated
  9. * [x] An ingress controller configure for web traffic
  10. * [x] Helm installed and authenticated to the cluster
  11. == Installation
  12. [source,shell]
  13. ----
  14. user@host: helm repo add olivetin https://olivetin.github.io/OliveTin-HelmChart/
  15. user@host: helm install olivetin olivetin/olivetin
  16. NAME: olivetin
  17. LAST DEPLOYED: Tue Apr 1 23:19:09 2025
  18. NAMESPACE: default
  19. STATUS: deployed
  20. REVISION: 1
  21. TEST SUITE: None
  22. ----
  23. == Configure
  24. After a minute or two, check the pod status;
  25. [source,shell]
  26. ----
  27. user@host: kubectl get pods
  28. NAME READY STATUS RESTARTS AGE
  29. olivetin-578b79766-4b8lg 1/1 Running 0 87s
  30. ----
  31. Hopefully the pod is not crashlooping or anything like that. If it is, check the logs.
  32. The helm chart should have created a basic ConfigMap for you;
  33. [source,shell]
  34. ----
  35. user@host: kubectl describe cm/olivetin-config
  36. Name: olivetin-config
  37. Namespace: default
  38. Labels: app.kubernetes.io/managed-by=Helm
  39. Annotations: meta.helm.sh/release-name: olivetin
  40. meta.helm.sh/release-namespace: default
  41. Data
  42. ====
  43. config.yaml:
  44. --
  45. actions:
  46. - title: "Hello world!"
  47. shell: echo 'Hello World!'
  48. ----
  49. You should edit this ConfigMap to match your needs for OliveTin. Remember to restart the OliveTin deployment if you want the config changes to be picked up more quickly;
  50. [source,shell]
  51. ----
  52. user@host: kubectl rollout restart deploy/olivetin
  53. deployment.apps/olivetin restarted
  54. ----
  55. include::partial$install/to_config.adoc[]
  56. == Included templates
  57. You can view the raw templates here: https://github.com/OliveTin/OliveTin-HelmChart/tree/main/charts/olivetin/templates
  58. * Deployment
  59. * ConfigMap
  60. * Service
  61. * Ingress (optional)
  62. == See Also
  63. * xref:solutions/k8s-control-panel-hosted/index.adoc[Solution: Kubernetes Control Panel (Hosted)]