Consult the renovate docs
Create an AppPassword on Bitbucket
Create a file named renovate-bot.secret.yaml with:
#
# Define namespace for renovate
#
apiVersion: v1
kind: Namespace
metadata:
name: renovate
---
#
# Create secrets for renovate bot
#
apiVersion: v1
kind: Secret
metadata:
namespace: renovate
name: renovate-env
type: Opaque
stringData:
renovate-platform: 'bitbucket'
renovate-endpoint: 'https://api.bitbucket.org/2.0/'
renovate-username: '<bot-username>'
renovate-password: '<app-password>'
renovate-autodiscover: 'false'then apply it:
kubectl apply -f config/kubernetes-aws/renovate-bot.secret.yaml
kubectl get secrets --namespace renovateCreate the cron job with:
kubectl apply -f config/kubernetes-aws/renovate-bot.yamlMake sure the cronjob is showing up:
kubectl get cronjob --namespace renovateTo run the cronjob manually:
kubectl create job --from=cronjob/renovate renovate-test-run --namespace renovatekubectl get pods --namespace renovate
kubectl logs <pod-name> --namespace renovate
kubectl describe pods <pod-name> --namespace renovatekubectl delete job renovate-test-run --namespace renovate
kubectl delete -f config/kubernetes-aws/renovate-bot.yaml
kubectl delete -f config/kubernetes-aws/renovate-bot.secret.yaml