mirror of
https://github.com/Portabase/agent.git
synced 2026-09-10 18:16:55 +00:00
a96cef6cb5
* fix: docker.yml * feat: add helm chart config * fix: helm config * feat: add .github workflow for helm chart --------- Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
60 lines
895 B
Markdown
60 lines
895 B
Markdown
# Development Notes
|
|
|
|
## Check that Kubernetes is reachable locally
|
|
|
|
```bash
|
|
kubectl get nodes
|
|
```
|
|
|
|
## Install the local Portabase Agent Helm chart
|
|
|
|
```bash
|
|
helm install portabase-agent . \
|
|
--set env.EDGE_KEY=<your-edge-key>
|
|
```
|
|
|
|
## Check the pods
|
|
|
|
```bash
|
|
kubectl get pods
|
|
```
|
|
|
|
## Check the services
|
|
|
|
```bash
|
|
kubectl get svc
|
|
```
|
|
|
|
## To update .env variables or JSON config:
|
|
```bash
|
|
kubectl rollout restart deployment portabase-agent
|
|
```
|
|
|
|
## Install or upgrade the Helm chart
|
|
```bash
|
|
helm upgrade portabase-agent . \
|
|
--reuse-values \
|
|
--set env.EDGE_KEY="NEW_EDGE_KEY"
|
|
```
|
|
|
|
## Rollout to restart
|
|
```bash
|
|
kubectl rollout restart deployment portabase-agent
|
|
```
|
|
|
|
## List pods to get the pod name
|
|
|
|
```bash
|
|
kubectl get pods -l app=portabase-agent
|
|
```
|
|
|
|
## Get logs for the pod
|
|
```bash
|
|
kubectl logs portabase-agent-6f7d4f5c6b-abc12
|
|
```
|
|
|
|
## Uninstall Agent
|
|
``` bash
|
|
helm uninstall portabase-agent
|
|
```
|