add drone
This commit is contained in:
parent
69c46a7d77
commit
68d60f2765
|
@ -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 -
|
|
@ -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 -
|
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`
|
||||||
|
|
|
@ -4,6 +4,7 @@ metadata:
|
||||||
name: nocodelytics-events-worker
|
name: nocodelytics-events-worker
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
backoffLimit: 4
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
ms: nocodelytics-events-worker
|
ms: nocodelytics-events-worker
|
||||||
|
|
Loading…
Reference in New Issue