I tried to follow the steps mentioned here GitHub - drone/charts: Helm charts for the Drone platform on Kubernetes.
I created a k8s cluster on gcloud and performed in sequence below steps:
- k8s in google cloud I can access from my machine.
- I added chart in helm
helm repo add drone https://charts.drone.io helm repo update
- I created
drone-values.yaml
service: type: LoadBalancer env: DRONE_SERVER_HOST: drone.example.com DRONE_SERVER_PROTO: http DRONE_RPC_SECRET: secret DRONE_GITHUB_CLIENT_ID: xxxxxxxxxxxxxxxxxxxxxxx DRONE_GITHUB_CLIENT_SECRET: yyyyyyyyyyyyyyyyyyyyy DRONE_USER_CREATE: username:kushwahashiv,admin:true
- installed drone
kubectl create ns drone helm install --namespace drone drone drone/drone -f drone-values.yaml
All the pods were created and running
- I created a file
rone-runner-kube-values.yaml
with below content
rbac: buildNamespaces: - drone env: DRONE_RPC_SECRET: secret DRONE_NAMESPACE_DEFAULT: drone
- Installed runner
helm install --namespace drone drone-runner-kube drone/drone-runner-kube -f drone-runner-kube-values.yaml
All the pods running successfully.
- When I sync repos and try to change the repo it triggers a build