{"id":23282179,"url":"https://github.com/alilotfi23/simple-k8s-operator","last_synced_at":"2026-04-29T13:31:13.688Z","repository":{"id":234554305,"uuid":"789132655","full_name":"alilotfi23/simple-k8s-operator","owner":"alilotfi23","description":"k8s operator with python","archived":false,"fork":false,"pushed_at":"2024-10-16T09:20:14.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T02:42:52.109Z","etag":null,"topics":["crd","k8s","kubernetes","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/alilotfi23.png","metadata":{"files":{"readme":"README.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-19T19:06:48.000Z","updated_at":"2025-03-17T09:35:09.000Z","dependencies_parsed_at":"2024-04-19T20:25:55.235Z","dependency_job_id":"96cf06e2-ddd2-4778-a42d-fc2fdf9970c0","html_url":"https://github.com/alilotfi23/simple-k8s-operator","commit_stats":null,"previous_names":["alilotfi23/simple-k8s-operator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alilotfi23/simple-k8s-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fsimple-k8s-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fsimple-k8s-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fsimple-k8s-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fsimple-k8s-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alilotfi23","download_url":"https://codeload.github.com/alilotfi23/simple-k8s-operator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fsimple-k8s-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32427419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T12:24:25.982Z","status":"ssl_error","status_checked_at":"2026-04-29T12:24:24.439Z","response_time":110,"last_error":"SSL_read: 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":["crd","k8s","kubernetes","python"],"created_at":"2024-12-20T00:14:55.122Z","updated_at":"2026-04-29T13:31:13.671Z","avatar_url":"https://github.com/alilotfi23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# k8s Operator with my name\n\nThe **Ali Lotfi Operator** is a Kubernetes operator that manages the deployment of pods based on a custom resource definition (CRD) named `helloworlds`. This README overviews the project, installation instructions, and usage examples.\n\n## Overview\n\nThis Operator automates the deployment of multiple pods running a \"Hello World\" application in a Kubernetes cluster. It uses Kopf, a Python framework for Kubernetes operators, to watch for changes in custom resources of type `helloworlds` and create corresponding pods based on the specifications provided.\n\n## Installation\n\nTo deploy the Operator in your Kubernetes cluster, follow these steps:\n\n1. **Clone the Repository:**\n\n   ```bash\n   git https://github.com/alilotfi23/simple-k8s-operator.git\n   cd simple-k8s-operator\n   ```\n\n2. **Install Dependencies:**\n\n   Ensure you have Python 3.6+ installed along with `pip`. Then, install the required Python packages:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Deploy the Operator:**\n\n   Deploy the operator into your Kubernetes cluster. This typically involves creating Custom Resource Definitions (CRDs) and deploying the operator as a Kubernetes deployment or pod.\n\n   ```bash\n   kubectl apply -f deploy/\n   ```\n\n   This command will apply the necessary Kubernetes manifests located in the `deploy/` directory, including the CRD definition and the operator deployment.\n\n## Usage\n\nOnce the Operator is deployed, you can create instances of the `helloworlds` custom resource to automatically create pods in your Kubernetes cluster.\n\n### Example Custom Resource\n\nCreate a YAML file (e.g., `hello-world.yaml`) with the following content to define a `helloworlds` resource:\n\n```yaml\napiVersion: sample.com/v1\nkind: HelloWorld\nmetadata:\n  name: example-helloworld\nspec:\n  replicas: 3\n  image: nginx:latest\n```\n\n### Apply the Custom Resource\n\nApply the custom resource definition to your Kubernetes cluster:\n\n```bash\nkubectl apply -f hello-world.yaml\n```\n\n### Verify Pods Creation\n\nCheck that the pods have been created:\n\n```bash\nkubectl get pods\n```\n\nYou should see pods named `hello-world-1`, `hello-world-2`, etc., running the specified `nginx` image.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request with your changes.\n\n## Acknowledgments\n\n- **Kopf**: Kubernetes Operator Framework for Python\n- **Kubernetes Python Client**: Python client library for Kubernetes API\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilotfi23%2Fsimple-k8s-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falilotfi23%2Fsimple-k8s-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilotfi23%2Fsimple-k8s-operator/lists"}