{"id":22495468,"url":"https://github.com/zmalik/k8s-publisher","last_synced_at":"2026-03-09T01:32:14.718Z","repository":{"id":152662441,"uuid":"117615473","full_name":"zmalik/k8s-publisher","owner":"zmalik","description":"A simple k8s controller that publish messages on pod level based on annotations in slack channels","archived":false,"fork":false,"pushed_at":"2018-07-20T10:37:14.000Z","size":391,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-17T17:09:03.598Z","etag":null,"topics":["events","kubernetes","pods","slack"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmalik.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-16T01:37:02.000Z","updated_at":"2018-07-20T10:37:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"f74a0193-100b-4891-841b-d73c0e362911","html_url":"https://github.com/zmalik/k8s-publisher","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zmalik/k8s-publisher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmalik%2Fk8s-publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmalik%2Fk8s-publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmalik%2Fk8s-publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmalik%2Fk8s-publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmalik","download_url":"https://codeload.github.com/zmalik/k8s-publisher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmalik%2Fk8s-publisher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30279777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["events","kubernetes","pods","slack"],"created_at":"2024-12-06T19:28:57.052Z","updated_at":"2026-03-09T01:32:14.691Z","avatar_url":"https://github.com/zmalik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/zmalik/k8s-publisher.svg?branch=master)](https://travis-ci.org/zmalik/k8s-publisher)\n\n# k8s-publisher\n\nA simple kubernetes controller that watches pods for any changes and notify to sinks or trigger actions based on pods annotations\n\nThe idea behind k8s-publisher is to empower pod level custom channels, and avoid a super sink to aggregate all events of a kubernetes cluster. And make it easy a pod diagnostic in case of naive errors.\n\n\n\n## Slack integration\n\nThe very first integration is with slack. You can define a slack channel to subscribe for a pod.\n\n```\nannotations:\n  # Tell k8s-publisher to send notifications of failure to slack #my-channel\n  notify-channels: |\n        [{\"type\":\"slack\", \"value\":\"#my-channel\"}]\n```\n\nAnd the k8s-publisher takes care of publishing messages related to the pod to that channel.\n\n\n## Http integration\n\nThe very first integration is with slack. You can define a slack channel to subscribe for a pod.\n\n```\nannotations:\n  # Tell k8s-publisher to send notifications of failure to endpoint\n  notify-channels: |\n        [{\"type\":\"http\", \"value\":\"http://myendpoint.com/webhook\"}]\n```\n\nAnd the k8s-publisher takes care of publishing messages related to the pod to that channel.\n\n\n## Installation\n\n```\ngit clone https://github.com/zmalik/k8s-publisher.git\n```\n\nedit the `deploy/deployment.yaml` file and add your slack-api-token\n\n```\nkubectl create -f deploy/deployment.yaml\n```\n\nA k8s-publisher pod will run and keep an eye on all pods and keep checking for the `notify-channels` annotation.\n\n\n\n![demo.png](demo.png)\n\n\n\n## Work in Progress\n\nThis is a work in progress to add more integrations like stdout or email.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmalik%2Fk8s-publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmalik%2Fk8s-publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmalik%2Fk8s-publisher/lists"}