add drone

This commit is contained in:
Florian Herrengt 2024-01-25 11:55:44 +00:00
parent 69c46a7d77
commit 68d60f2765
3 changed files with 26 additions and 0 deletions

21
.drone.yml Normal file
View File

@ -0,0 +1,21 @@
kind: pipeline
type: docker
name: kubernetes
trigger:
branch:
- master
event:
- push
environment:
KUBE_CONFIG:
from_secret: KUBE_CONFIG
steps:
- name: kustomization
image: bitnami/kubectl:latest
commands:
- curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- echo "$$KUBE_CONFIG" | base64 -d > /.kube/config
- kustomize build ./kustomization/overlays/staging | kubectl apply -f -

View File

@ -37,3 +37,7 @@ If there's an issue with the credentials:
```
kubectl create secret generic cloud-credentials --namespace velero --from-file=cloud=./secrets/credentials-velero --dry-run=client -o yaml | kubectl apply -f -
```
### Connect to services
Postgres: `kubectl -n databases port-forward pod/postgres-0 5432:5432`

View File

@ -4,6 +4,7 @@ metadata:
name: nocodelytics-events-worker
spec:
replicas: 1
backoffLimit: 4
selector:
matchLabels:
ms: nocodelytics-events-worker