CI/CD Manager for kthcloud automatically restarts Kubernetes deployments when a new image is pushed to the registry.
Webhook endpoint for pushed images
- cluster: The cluster to deploy to, 'sys', 'prod', 'dev'
- namespace (optional): The namespace to deploy to
In order to use the CI/CD Manager, you need to create a Kubernetes secret called kthcloud-ci-token
in the namespace you want to use it in. The secret should contain a base64 encoded token called token
. The token is used to authenticate the webhook endpoint.
Once the webhook is triggered, every deployment in the namespace will restart if it uses the image that was pushed to the registry.
Example secret:
kind: Secret
apiVersion: v1
metadata:
name: kthcloud-ci-token
namespace: <your namespace>
data:
token: <base64 encoded token>
type: Opaque