{"id":20171478,"url":"https://github.com/hnaderi/sbt-k8s","last_synced_at":"2025-07-11T18:35:51.331Z","repository":{"id":59484935,"uuid":"530651902","full_name":"hnaderi/sbt-k8s","owner":"hnaderi","description":"Unopinionated kubernetes manifests for scala and sbt","archived":false,"fork":false,"pushed_at":"2025-07-01T02:32:00.000Z","size":334,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T03:36:05.586Z","etag":null,"topics":["k8s","kubernetes","manifest","sbt","sbt-plugin","scala","typesafe","typesafe-config","typesafeconfig","yaml"],"latest_commit_sha":null,"homepage":"http://projects.hnaderi.dev/sbt-k8s/","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hnaderi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-08-30T12:42:18.000Z","updated_at":"2025-07-01T02:32:03.000Z","dependencies_parsed_at":"2023-09-24T03:13:40.873Z","dependency_job_id":"5e8adcb5-76e0-4eee-bd71-9034b13edae9","html_url":"https://github.com/hnaderi/sbt-k8s","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/hnaderi/sbt-k8s","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnaderi%2Fsbt-k8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnaderi%2Fsbt-k8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnaderi%2Fsbt-k8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnaderi%2Fsbt-k8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hnaderi","download_url":"https://codeload.github.com/hnaderi/sbt-k8s/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnaderi%2Fsbt-k8s/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264871804,"owners_count":23676526,"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","kubernetes","manifest","sbt","sbt-plugin","scala","typesafe","typesafe-config","typesafeconfig","yaml"],"created_at":"2024-11-14T01:25:03.391Z","updated_at":"2025-07-11T18:35:51.304Z","avatar_url":"https://github.com/hnaderi.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png\" height=\"100px\" alt=\"kubernetes icon\" /\u003e\n  \u003cbr/\u003e\n  \u003cstrong\u003esbt k8s\u003c/strong\u003e\n  \u003ci\u003esbt plugin for scala k8s\u003c/i\u003e\n\u003c/p\u003e\n\n\u003ca href=\"https://typelevel.org/cats/\"\u003e\u003cimg src=\"https://typelevel.org/cats/img/cats-badge.svg\" height=\"40px\" align=\"right\" alt=\"Cats friendly\" /\u003e\u003c/a\u003e\n\n[![sbt-k8s Scala version support](https://index.scala-lang.org/hnaderi/sbt-k8s/sbt-k8s/latest-by-scala-version.svg?style=flat-square)](https://index.scala-lang.org/hnaderi/sbt-k8s/sbt-k8s) \n\u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/hnaderi/sbt-k8s/ci.yml?style=flat-square\"\u003e\n\u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/hnaderi/sbt-k8s?style=flat-square\"\u003e\n[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat-square\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)\n\n### Usage\n\nThis sbt plugin is available for sbt 1.x\n\nTo use the latest version of plugins, include the following in your `project/plugins.sbt`:\n\n```scala\naddSbtPlugin(\"dev.hnaderi\" % \"sbt-k8s\" % \"@VERSION@\") // everything\naddSbtPlugin(\"dev.hnaderi\" % \"sbt-k8s-manifests\" % \"@VERSION@\") // just manifest generation and objects\naddSbtPlugin(\"dev.hnaderi\" % \"sbt-k8s-cookbook\" % \"@VERSION@\") // easy to use recipes (RECOMMENDED)\n```\n\nand your project in `build.sbt`\n\n#### If you have native packager docker plugin. (all settings are optional)\n```scala\nlazy val service = project\n  .settings(\n    microserviceResources := ResourceRequirements(\n      limits = Map(\"cpu\" -\u003e Quantity(\"500m\"), \"memory\" -\u003e Quantity(\"512Mi\")),\n      requests = Map(\"cpu\" -\u003e Quantity(\"250m\"), \"memory\" -\u003e Quantity(\"128Mi\"))\n    ),\n    microserviceEnvironments := Seq(\n      Variable(\"SERVICE_NAME\", \"example\"),\n      ExternalSecretVariable(\"POSTGRES_PASSWORD\", \"password\", \"pg-credentials\"),\n      ConfigFile(\"service-config\", Map(\n          \"app.conf\" -\u003e file(s\"deployments/configs/service.conf\"),\n          \"base.conf\" -\u003e file(s\"deployments/configs/base.conf\")\n        ),\n        \"/mnt/config\"\n      )\n    ),\n    microserviceServices := Seq(ServiceDefinition(\"ws\", 8080, 80))\n  )\n  .enablePlugins(DockerPlugin, K8sMicroservicePlugin)\n```\n\n#### If you don't want to use native packager (microserviceImage is required)\n```scala\nlazy val service = project\n  .settings(\n    microserviceImage := \"your.registry/your-image:version\"\n  )\n  .enablePlugins(K8sMicroservicePlugin)\n```\n\n#### If you want to create completely custom manifests (you are on your own, create any kubernetes object you want)\n\n```scala\nlazy val service = project\n  .settings(\n    k8sManifestObjects := Seq(\n      // kubernetes objects from scala-k8s\n    )\n  )\n  .enablePlugin(K8sManifestPlugin)\n```\n\n### How to run\nnow you have `k8sManifestGen` and `k8sManifestPrint` tasks that will generate or print manifest for defined objects.  \ndefault generation will write manifest in `target/k8s/manifest.yml`\n\n### Configure\nYou can configure everything using settings. current settings are prefixed by `k8sManifest` or `microservice`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhnaderi%2Fsbt-k8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhnaderi%2Fsbt-k8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhnaderi%2Fsbt-k8s/lists"}