{"id":16701652,"url":"https://github.com/coryodaniel/hello_operator","last_synced_at":"2025-06-10T15:36:13.868Z","repository":{"id":66508436,"uuid":"162958999","full_name":"coryodaniel/hello_operator","owner":"coryodaniel","description":"A greeting-server operator created with Bonny","archived":false,"fork":false,"pushed_at":"2020-02-12T23:45:08.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T05:34:45.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/coryodaniel.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-12-24T06:39:59.000Z","updated_at":"2021-07-07T19:03:27.000Z","dependencies_parsed_at":"2023-05-23T21:30:33.370Z","dependency_job_id":null,"html_url":"https://github.com/coryodaniel/hello_operator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryodaniel%2Fhello_operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryodaniel%2Fhello_operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryodaniel%2Fhello_operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryodaniel%2Fhello_operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coryodaniel","download_url":"https://codeload.github.com/coryodaniel/hello_operator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154994,"owners_count":21056543,"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-10-12T18:45:02.695Z","updated_at":"2025-04-10T04:12:20.741Z","avatar_url":"https://github.com/coryodaniel.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HelloOperator\n\nHello world operator created with Bonny.\n\n[Bonny](https://github.com/coryodaniel/bonny) is a Kubernetes Operator SDK written in Elixir.\n\n[HelloOperator Docker Image](https://quay.io/coryodaniel/hello_operator)\n\nThis [operator](./manifest.yaml) contains all the resources necessary to define an operator (CRDs, RBAC, ServiceAccount, and Deployment). The operator itself creates a simple Deployment running the [greeting-server](https://github.com/coryodaniel/greeting-server) and an HTTP Service.\n\nThe code for generating the lifecycle of a `Greeting` Deployment/Service is [here](./lib/hello_operator/controllers/v1/greeting.ex).\n\n## Usage\n\n*Deploying the operator outside a cluster (development):*\n\n```shell\nmix deps.get\nmix compile\n\n# Deploy to kubernetes\nmix bonny.gen.manifest\nkubectl apply -f ./manifest.yaml\niex -S mix\n```\n\n*Deploying the operator inside a cluster (production):*\n\n```shell\nmix deps.get\nmix compile\n\n# Build docker image\nmix bonny.gen.dockerfile\nexport BONNY_IMAGE=YOUR_IMAGE_NAME_HERE\ndocker build -t ${BONNY_IMAGE} .\ndocker push ${BONNY_IMAGE}:latest\n\n# Optionally, skip building the docker image and play with the operator\n# export BONNY_IMAGE=quay.io/coryodaniel/hello_operator\n\n# Deploy to kubernetes\nmix bonny.gen.manifest --image ${BONNY_IMAGE}\nkubectl apply -f ./manifest.yaml\n```\n\n*Create two `Greeting` resources:*\n\nCreate the \"Hello\" and \"Hola\" Greeting services:\n\n```shell\nkubectl apply -f ./greetings.yaml\n```\n\nInspect the greeting resources:\n\n```shell\n# you should see two greetings\nkubectl get greetings \n\nkubectl describe greetings/hello-server\n\nkubectl describe greetings/hola-server\n```\n\nYou should be able to browse to NodePort Service of each:\n\n```shell\nkubectl get svc/hello-server\nkubectl get svc/hola-server\n```\n\n* http://HELLO_SERVICE_NODE_PORT/greeting/Chauncy - Hello, Chauncy\n* http://HOLA_SERVICE_NODE_PORT/greeting/Chauncy - Hola, Chauncy\n\n## Kubernetes Client\n\nThis project uses a very trivial [kubernetes client](./lib/k8s/client.ex). It is not recommended for production.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryodaniel%2Fhello_operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoryodaniel%2Fhello_operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryodaniel%2Fhello_operator/lists"}