{"id":13879144,"url":"https://github.com/boltops-tools/kubes","last_synced_at":"2025-04-07T19:16:35.576Z","repository":{"id":37599898,"uuid":"102140213","full_name":"boltops-tools/kubes","owner":"boltops-tools","description":"kubes","archived":false,"fork":false,"pushed_at":"2024-01-10T12:13:21.000Z","size":2507,"stargazers_count":99,"open_issues_count":1,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-31T16:17:40.747Z","etag":null,"topics":["boltops","kuberenetes"],"latest_commit_sha":null,"homepage":"https://kubes.guru","language":"Ruby","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/boltops-tools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/support.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"boltops-tools"}},"created_at":"2017-09-01T18:08:45.000Z","updated_at":"2025-03-01T19:10:44.000Z","dependencies_parsed_at":"2024-06-21T17:51:16.673Z","dependency_job_id":null,"html_url":"https://github.com/boltops-tools/kubes","commit_stats":{"total_commits":334,"total_committers":1,"mean_commits":334.0,"dds":0.0,"last_synced_commit":"c6496e5df097a8ed7f616996e594462b956cf2c6"},"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boltops-tools%2Fkubes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boltops-tools%2Fkubes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boltops-tools%2Fkubes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boltops-tools%2Fkubes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boltops-tools","download_url":"https://codeload.github.com/boltops-tools/kubes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713258,"owners_count":20983683,"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":["boltops","kuberenetes"],"created_at":"2024-08-06T08:02:11.150Z","updated_at":"2025-04-07T19:16:35.552Z","avatar_url":"https://github.com/boltops-tools.png","language":"Ruby","funding_links":["https://github.com/sponsors/boltops-tools"],"categories":["Ruby","Configuration Management"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://kubes.guru\"\u003e\u003cimg src=\"https://img.boltops.com/boltops/logos/kubes-black-v1.png\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n# Kubes\n\n[![Gem Version](https://badge.fury.io/rb/kubes.png)](http://badge.fury.io/rb/kubes)\n\n[![BoltOps Badge](https://img.boltops.com/boltops/badges/boltops-badge.png)](https://www.boltops.com)\n\nKubernetes App Deploy Tool: build docker image, compile Kubernetes YAML files, and apply them.\n\nPlease **watch/star** this repo to help grow and support the project.\n\nOfficial Docs Site: [kubes.guru](https://kubes.guru)\n\nKubes will:\n\n1. Build the docker image and push it to repo\n2. Compile Kubernetes YAML files from YAML/ERB or a DSL with built Docker image\n3. Deploy via `kubectl apply` on the compiled Kubernetes YAML files\n\n## Usage\n\n    kubes init # creates .kubes structure\n    # edit the .kubes/resources files to your needs\n    kubes deploy\n\n## How It Works\n\nKubes is pretty straightforward. Kubes first builds the Docker image and compiles Kubernetes YAML files. Then it merely calls `kubectl`.\n\nIn fact, you can use Kubes to build the files first, and then run `kubectl` directly. Example:\n\n    kubes docker build\n    kubes docker push\n    kubes compile  # compiles the .kubes/resources files to .kubes/output\n\nNow, use `kubectl` directly in the proper order:\n\n    kubectl apply -f .kubes/output/shared/namespace.yaml\n    kubectl apply -f .kubes/output/web/service.yaml\n    kubectl apply -f .kubes/output/web/deployment.yaml\n\nYou can also apply with kubes. This will automatically compile the files also.\n\n    kubes apply\n\nThe deploy command, does all 3 steps: builds the docker image, compiles the `.kubes/resources` files, and runs kubectl apply.\n\n    kubes deploy\n\n## Multiple Environments\n\nYou can easily create multiple environments with the same YAML configs. Example:\n\n    KUBES_ENV=dev  kubes deploy\n    KUBES_ENV=prod kubes deploy\n\nSee: [Multiple Enviroments Pattern](https://kubes.guru/docs/patterns/multiple-envs/)\n\n## Generators: Stop Writing Boilerplate\n\nYour time is precious. Why are we copying and pasting boilerplate structure in this day and age?\n\nKubes provides generators to help you get going right away.\n\nResources examples:\n\n    $ kubes new resource secret\n          create  .kubes/resources/shared/secret.yaml\n    $ kubes new resource service_account\n          create  .kubes/resources/shared/service_account.yaml\n\nKubes components examples:\n\n    $ kubes new helper\n          create  .kubes/helpers/custom_helper.rb\n    $ kubes new variable\n          create  .kubes/variables/dev.rb\n    $\n\n## Features\n\n* Automation: [Builds the Docker image](https://kubes.guru/docs/config/docker/) and updates the compiled YAML files\n* Syntactic Sugar: Use an [ERB/YAML](https://kubes.guru/docs/yaml/) or a [DSL](https://kubes.guru/docs/dsl/) to write your Kubernetes YAML files. You can use a mix of DSL and YAML definitions in the `.kubes/resources` folder.\n* Layering: Use the same Kubernetes YAML to build multiple environments like dev and prod with [layering](https://kubes.guru/docs/layering/).\n* Secrets: Use helpers like [aws_secret](https://kubes.guru/docs/helpers/aws/secrets/), [aws_ssm](https://kubes.guru/docs/helpers/aws/ssm/), and [google_secret](https://kubes.guru/docs/helpers/google/secrets/) to build Kubernetes secrets.yaml from secret providers designed for it.\n* Generators: Kubes ships with a few generators to help you get building with Kubernetes quickly. See: [Generator Docs](https://kubes.guru/docs/generators/).\n* CLI Customizations: You can customize the [cli args](https://kubes.guru/docs/config/args/kubectl/).\n* Hooks: You can also run [hooks](https://kubes.guru/docs/config/hooks/) before and after [kubes](https://kubes.guru/docs/config/hooks/kubes/) and [kubectl](https://kubes.guru/docs/config/hooks/kubectl/) commands.\n* Automated Suffix Hashes: Automatically appends a suffix hash to ConfigMap and Secret resources. More details in [ConfigMap](https://kubes.guru/docs/dsl/resources/config_map/) and [Secret](https://kubes.guru/docs/dsl/resources/secret/) docs.\n* Kustomize Support: If you're a kustomization user, you can use it with Kubes. More details in [Kustomize Support Docs](https://kubes.guru/docs/misc/kustomize/).\n* Auto Context Switching: Map dev to a specific kubectl context and prod to another kubectl context and Kubes can switch them automatically so you won't have to remember. More details in [Auto Context Docs](https://kubes.guru/docs/misc/auto-context/).\n* Ordering: Kubes run kubectl apply to create resources in the [correct order](https://kubes.guru/docs/intro/ordering/). For deleting, it kubes will run `kubectl delete` in the correct reverse order. The order is also [customizable](https://kubes.guru/docs/intro/ordering/custom/).\n\n## Installation\n\nInstall with:\n\n    gem install kubes\n\n## Comparison\n\nHere are some useful comparisons to help you compare Kubes vs other tools in the ecosystem:\n\n* Blog Post: [Kustomize vs Helm vs Kubes: Kubernetes Deploy Tools](https://blog.boltops.com/2020/11/05/kustomize-vs-helm-vs-kubes-kubernetes-deploy-tools)\n* [Kubes vs Custom Solution](https://kubes.guru/docs/vs/custom/)\n* [Kubes vs Helm](https://kubes.guru/docs/vs/helm/)\n* [Kubes vs Kustomize](https://kubes.guru/docs/vs/kustomize/)\n\nFor more info: [kubes.guru](https://kubes.guru)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboltops-tools%2Fkubes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboltops-tools%2Fkubes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboltops-tools%2Fkubes/lists"}