{"id":22931533,"url":"https://github.com/angudadevops/service-deployment-operator","last_synced_at":"2025-10-14T06:12:20.835Z","repository":{"id":182387473,"uuid":"326811896","full_name":"angudadevops/service-deployment-operator","owner":"angudadevops","description":"Kubernetes Operator Controller to deploy a Deployment and Service on Kubernetes Cluster. Operator Example with Operator SDK","archived":false,"fork":false,"pushed_at":"2021-01-04T22:20:23.000Z","size":16491,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-19T19:56:02.312Z","etag":null,"topics":["k8s-operator","k8s-operator-controller","k8s-operator-example","k8s-service-operator","kubernetes-controller","kubernetes-operator","kubernetes-test-operator","operator-example","operator-sdk-example","service-deployment-operator"],"latest_commit_sha":null,"homepage":"","language":"Go","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/angudadevops.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}},"created_at":"2021-01-04T21:28:29.000Z","updated_at":"2023-07-19T19:56:13.936Z","dependencies_parsed_at":null,"dependency_job_id":"a58fab40-e917-4ef4-a10d-42e309a03add","html_url":"https://github.com/angudadevops/service-deployment-operator","commit_stats":null,"previous_names":["angudadevops/service-deployment-operator"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2Fservice-deployment-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2Fservice-deployment-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2Fservice-deployment-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2Fservice-deployment-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angudadevops","download_url":"https://codeload.github.com/angudadevops/service-deployment-operator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246679682,"owners_count":20816543,"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":["k8s-operator","k8s-operator-controller","k8s-operator-example","k8s-service-operator","kubernetes-controller","kubernetes-operator","kubernetes-test-operator","operator-example","operator-sdk-example","service-deployment-operator"],"created_at":"2024-12-14T10:39:33.210Z","updated_at":"2025-10-14T06:12:15.818Z","avatar_url":"https://github.com/angudadevops.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Service Deployment Operator\n\nThis Operator help you to deploy Application Deployment and Service on Kubernetes/Openshift Cluster.\n\n## Prerequisites\n  - [Operator Framework](https://github.com/operator-framework)\n  - [Golang](https://golang.org/dl/)\n  - Kubernetes/Openshift Cluster\n\n## Build an Operator\n\nRun the below commands to build an operator on your machine\n\n```\noperator-sdk generate k8s  ## if you change the types of varaibles\noperator-sdk generate crds \n\noperator-sdk build \u003cDocker-Image\u003e\n```\n\n## Deploy on your cluster\n\nCreate a CRD on your cluster with below command \n\n```\nkubectl apply -f deploy/crds/servicedeployment_v1alpha1_sd_crd.yaml\n```\n\nNow Create service Account and role bindings for SD Operator with below commands\n```\nkubectl apply -f deploy/service_account.yaml\nkubectl apply -f deploy/role.yaml\nkubectl apply -f deploy/role_binding.yaml\n```\nDeploy Service Deployment Operator with below command\n```\nkubectl apply -f deploy/operator.yaml\n```\n\n## Create a Custom Resource\n\nOnce Operator is up and running, use the below snippet and update your parameters to deploy your code on your cluster.\n\n```\napiVersion: servicedeployment.com/v1alpha1\nkind: SD\nmetadata:\n  name: nginx-sd\nspec:\n  # Add fields here\n  replicas: 3\n  image: nginx\n  containerPort: 80\n  nodePort: 31001\n```\n\nYou can apply the below yaml for your testing \n```\nkubectl apply -f deploy/crds/servicedeployment.com_v1alpha1_sd_cr.yaml\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangudadevops%2Fservice-deployment-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangudadevops%2Fservice-deployment-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangudadevops%2Fservice-deployment-operator/lists"}