{"id":21428016,"url":"https://github.com/redhat-developer-demos/k8s-ansible-eda","last_synced_at":"2026-01-04T03:07:47.537Z","repository":{"id":184129679,"uuid":"663097255","full_name":"redhat-developer-demos/k8s-ansible-eda","owner":"redhat-developer-demos","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-15T11:58:44.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T07:47:56.539Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhat-developer-demos.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-06T14:43:46.000Z","updated_at":"2023-09-04T21:28:48.000Z","dependencies_parsed_at":"2023-07-27T07:43:12.914Z","dependency_job_id":null,"html_url":"https://github.com/redhat-developer-demos/k8s-ansible-eda","commit_stats":null,"previous_names":["redhat-developer-demos/k8s-ansible-eda"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fk8s-ansible-eda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fk8s-ansible-eda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fk8s-ansible-eda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fk8s-ansible-eda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer-demos","download_url":"https://codeload.github.com/redhat-developer-demos/k8s-ansible-eda/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933942,"owners_count":20371097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-22T22:09:44.025Z","updated_at":"2026-01-04T03:07:47.506Z","avatar_url":"https://github.com/redhat-developer-demos.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Ansible EDA Kubernetes\n\nThis example uses Ansible EDA listening for any addition of a ConfigMap on the Kubernetes cluster, and sending an email with the information of the addition.\nIn this case, it's simple, but it could be for example restarting the Deployment to get the changes into the Pod.\n\n== Deployment\n\nTo deploy, first of all create a new namespace named `k8seda`:\n\n[source, bash]\n----\nkubectl create namespace k8seda\n----\n\nAnd move to `k8seda` namespace:\n\n[source, bash]\n----\nkubens k8seda\n----\n\nThen, go to `kubernetes` directory and deploy MailHog mail service:\n\n[source, bash]\n----\nkubectl apply -f 1-mailhog-deployment.yml\n----\n\nINFO: This `yml` contains an OpenShift Route to access the service from outside the cluster. In the case of minikube/kind/..., you can skip that and use any other feature provided to access the service like `port-forward`.\n\nFinally, deploy the Ansible Eda container:\n\n[source, bash]\n----\nkubectl apply -f 2-eda-deployment.yml\n----\n\n== Demo\n\nWhen everything is up and running, create a new ConfigMap:\n\n[source, bash]\n----\nkubectl create configmap -n k8seda eda-example --from-literal=message=\"Kubernetes Meets Event-Driven Ansible\"\n----\n\nNow, you can inspect the logs of the Ansible EDA Pod, and you'll notice that the event has been captured and processed.\n\nMoreover, if you access the MailHog UI (the route points directly to the UI), you'll enter the Mail console to validate that the email was sent.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fk8s-ansible-eda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer-demos%2Fk8s-ansible-eda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fk8s-ansible-eda/lists"}