/ssl_certificate_check

Check Certificate expiration and notify to Slack using Kubeless

Primary LanguagePython

ssl_certificate_check

Check Certificate expiration and notify to Slack using Kubeless

Pre-requisite

Installation

  • Run one of following command to install serverless-kubeless plugin.
npm install -g serverless-kubeless

or

sls plugin install -n serverless-kubeless

Configuration

  • To adding multiple domain for SSL certificate check, add domain exactly in DOMAIN_LIST envrionment variable in serverless.yml. (comma seperated) for e.g.:
DOMAIN_LIST="ankurpshah.com,example.com"
  • Configure appropriate SLACK_WEB_HOOK URL and SLACK_CHANNEL_NAME in serverless.yml file.

Deployment

  • Run following command
sls deploy