Check Certificate expiration and notify to Slack using Kubeless
- Serverless framework must be installed.
- Kubernetes cluster
- Kubeless must be installed in existing kubernetes cluster.
- Run one of following command to install
serverless-kubeless
plugin.
npm install -g serverless-kubeless
or
sls plugin install -n serverless-kubeless
- To adding multiple domain for SSL certificate check, add domain exactly in
DOMAIN_LIST
envrionment variable inserverless.yml
. (comma seperated) for e.g.:
DOMAIN_LIST="ankurpshah.com,example.com"
- Configure appropriate
SLACK_WEB_HOOK
URL andSLACK_CHANNEL_NAME
inserverless.yml
file.
- Run following command
sls deploy