{"id":39355302,"url":"https://github.com/wongnai/eastern","last_synced_at":"2026-01-18T02:36:39.004Z","repository":{"id":27745286,"uuid":"113414876","full_name":"wongnai/eastern","owner":"wongnai","description":"Simple Kubernetes Deployment","archived":false,"fork":false,"pushed_at":"2022-05-11T04:36:33.000Z","size":106,"stargazers_count":26,"open_issues_count":2,"forks_count":6,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-11-27T15:13:19.090Z","etag":null,"topics":["devops","devops-tools","docker","kubernetes","kubernetes-deployment"],"latest_commit_sha":null,"homepage":"","language":"Python","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/wongnai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-07T07:00:04.000Z","updated_at":"2022-05-14T03:58:48.000Z","dependencies_parsed_at":"2022-08-08T22:00:38.148Z","dependency_job_id":null,"html_url":"https://github.com/wongnai/eastern","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/wongnai/eastern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongnai%2Feastern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongnai%2Feastern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongnai%2Feastern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongnai%2Feastern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wongnai","download_url":"https://codeload.github.com/wongnai/eastern/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongnai%2Feastern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28526574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["devops","devops-tools","docker","kubernetes","kubernetes-deployment"],"created_at":"2026-01-18T02:36:38.011Z","updated_at":"2026-01-18T02:36:38.989Z","avatar_url":"https://github.com/wongnai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Eastern\n\n[![Travis](https://api.travis-ci.org/wongnai/eastern.svg?branch=master)](https://travis-ci.org/wongnai/eastern)\n[![GitHub license](https://img.shields.io/github/license/wongnai/eastern.svg)](https://github.com/wongnai/eastern/blob/master/LICENSE)\n[![Read the Docs](https://img.shields.io/readthedocs/eastern.svg)](https://eastern.rtfd.org)\n[![PyPI](https://img.shields.io/pypi/v/eastern.svg)](https://pypi.python.org/pypi/eastern)\n[![Docker Hub](https://img.shields.io/docker/build/wongnai/eastern.svg)](https://hub.docker.com/r/wongnai/eastern/)\n\nA Kubernetes templating and deployment tool.\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n  - [Installing from PyPI](#installing-from-pypi)\n  - [Running from Docker Image](#running-from-docker-image)\n  - [Installing from Git](#installing-from-git)\n- [Usage](#usage)\n  - [Template language](#template-language)\n  - [Deploy](#deploy)\n  - [Deploy jobs](#deploy-jobs)\n- [Plugin](#plugin)\n- [License](#license)\n\n## Features\n\n- Simple, logicless template engine designed for YAML\n- Work with multiple environments\n- In use in production at [Wongnai](https://www.wongnai.com)\n- Extensible plugin architecture\n\n## Installation\n\nNote that Eastern requires `kubectl`.\n\n### Installing from PyPI\n\nRun `pip install eastern` to install.\n\n### Running from Docker Image\n\nEastern is available on [Docker Hub](https://hub.docker.com/r/wongnai/eastern/) for continuous delivery users.\n\n```sh\ndocker run -v `pwd`:/projects/ --rm wongnai/eastern eastern generate /projects/kubernetes.yaml\n```\n\n### Installing from Git\n\n1. Clone this repository\n2. Run `python3 setup.py install`. You might to run this as root.\n3. Run `eastern` to verify that it is installed.\n\n## Usage\n\n### Template language\n\nAt its core, Eastern is a YAML templating tool. Eastern provides the following commands as YAML comment.\n\n- `load? file_1.yaml, file_2.yaml ...`: Load the first file available\n- `load! file_1.yaml, file_2.yaml ...`: Same as `load?` but throw when no file is loaded.\n\nThe file name and contents may contains variable interpolation. Available variable is\n\n- `${NAMESPACE}`: Name of namespace\n\nAdditional variables can be passed by `-s var=value`.\n\nFor example:\n\n```yaml\nimage: wongnai/eastern:${IMAGE_TAG}\nenv:\n  # load! env-${NAMESPACE}.yaml, env.yaml\n```\n\nSee full deployment example in the [example](example/) folder.\n\nOnce you have written a template, test it with `eastern generate path/to/file.yaml namespace -s IMAGE_TAG=2.0`.\n\n### Deploy\n\nTo deploy, run `eastern deploy path/to/file.yaml namespace`.\n\nAvailable options:\n\n- `--set var=value` (`-s`): Set additional template variables\n- `--edit` (`-e`): Edit resulting YAML before deploying\n- `--no-wait`: Exit after running `kubectl` without waiting for rolling deploy\n\n### Deploy jobs\n\nEastern comes with [Job](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/) deployment tool.\n\nTo start a job, run `eastern job path/to/file.yaml namespace image_tag`. The file must have the job as its only document. Eastern will add `image_tag` as job suffix, deploy, wait until job's completion and remove the job.\n\nSupplied `image_tag` is available in the template as `${IMAGE_TAG}`.\n\n## Plugin\n\nEastern is extensible. We use Eastern plugins ourselves. The API docs is available on [Read the Docs](https://eastern.readthedocs.io/en/latest/).\n\n## License\n\n(C) 2017 Wongnai Media Co, Ltd.\n\nEastern is licensed under [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwongnai%2Feastern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwongnai%2Feastern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwongnai%2Feastern/lists"}