Deployment: add documenation for Kubernetes
All checks were successful
/ test (push) Successful in 31s
/ build (push) Successful in 8s

This commit is contained in:
phil 2024-12-27 06:09:14 +01:00
parent 3a84d920c1
commit 151bceb8c5
2 changed files with 58 additions and 0 deletions

1
deployment/kubernetes/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
gisaf-*.tgz

View file

@ -0,0 +1,57 @@
# Kubernetes deployment
This directory contains files for deployment on Kubernetes.
The standard installation uses a namespace named `gisaf`.
Commands below assume that they are run from this directory.
## Plain Kubernetes
2 files: `gisaf.yaml` and `config.yaml`
Deploy on Kubernetes (without Helm)
```sh
kubectl create namespace gisaf
kubectl apply -f config.yaml
```
Update after modification:
```sh
kubectl --namespace gisaf rollout restart deployment gisaf-server-deployment
```
## Helm
The `helm` chart is in the directory named `helm`.
### Deploy on Kubernetes
```sh
kubectl create namespace gisaf
helm install gisaf helm
```
#### Update
```sh
helm upgrade gisaf helm
```
### Publish the Helm chart
First, build the Helm package:
```sh
helm package heml
```
Then upload it:
```sh
helm --user phil:<password> -X POST \
--upload-file gisaf-0.1.0.tgz \
https://code.philo.ydns.eu/api/packages/philorg/helm/api/charts
```