Kubernetes deployment & pod monitoring with Telegram alerts
SETUP INSTRUCTIONS 1. Configure Kubeconfig - Open the "Kubeconfig Setup" node - Paste your entire kubeconfig file content into the kubeconfigContent variable - Set your target namespace in the namespace variable (defa...
Template notes
SETUP INSTRUCTIONS
1. Configure Kubeconfig - Open the "Kubeconfig Setup" node - Paste your entire kubeconfig file content into the kubeconfigContent variable - Set your target namespace in the namespace variable (default: 'production')
Example kubeconfig format: yaml apiVersion: v1 kind: Config clusters: - cluster: certificate-authority-data: LS0tLS1CRUd... server: https://your-cluster.example.com:6443 name: your-cluster contexts: - context: cluster: your-cluster user: your-user name: your-context current-context: your-context users: - name: your-user user: token: eyJhbGciOiJSUzI1...
2. Telegram Configuration - Create a Telegram bot via [@BotFather](https://t.me/BotFather) - Get your bot token and add it as a credential in n8n (Telegram API) - Find your chat ID: - Message your bot - Visit: https://api.telegram.org/bot<YourBotToken>/getUpdates - Look for "chat":{"id":...} - Open the "Send Telegram Alert" node - Replace YOURTELEGRAMCHATID with your actual chat ID - Select your Telegram API credential
3. Schedule Configuration - Open the "Schedule Trigger" node - Default: runs every 1 minute - Adjust the interval based on your monitoring needs: - Every 5 minutes: Change field to minutes and set minutesInterval to 5 - Every hour: Change field to hours and set hoursInterval to 1 - Cron expression: Use custom cron schedule
4. kubectl Installation - The workflow automatically downloads kubectl (v1.34.0) during execution - No pre-installation required on the n8n host - kubectl is downloaded and used temporarily for each execution
HOW IT WORKS
Workflow Steps