Mozilla Public License 2.0

项目介绍

hashicorp/levant 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 Mozilla Public License 2.0 许可证,目前获得 834 个 Star、124 次 Fork。

仓库全名
hashicorp/levant
开源许可证
Mozilla Public License 2.0
Star 数
834
Fork 数
124
未关闭 Issue
52

README 摘要

Levant Levant v0.4.0 is the final release of Levant. All users are encouraged to migrate to Nomad Pack. Levant is an open source templating and deployment tool for [HashiCorp Nomad][] jobs that provides realtime feedback and detailed failure messages upon deployment issues. Features Realtime Feedback: Using watchers, Levant provides realtime feedback on Nomad job deployments allowing for greater insight and…

完整内容见 GitHub 原始 README 或本页 。

常见问题

levant 用什么语言开发?

主要使用 Go 编写,采用 Mozilla Public License 2.0 许可证,目前有 834 个 Star。

levant 可以免费商用吗?

仓库标注的许可证为 Mozilla Public License 2.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 levant 的源码?

可以直接克隆仓库:git clone https://github.com/hashicorp/levant.git,默认分支为 main;安装与运行步骤见仓库 README。

levant 最近还在维护吗?

仓库最近一次更新为 2025年6月27日,当前有 52 个未关闭 Issue;Star 数为 834,可作为社区活跃度的参考。

关于

An open source templating and deployment tool for HashiCorp Nomad jobs

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
1089
价值分
535
活跃状态
归档

语言占比

Dockerfile
Go
HCL
Makefile
Shell

Release

README

Levant

Levant v0.4.0 is the final release of Levant. All users are encouraged to migrate to Nomad Pack.

Build Status Discuss

Levant is an open source templating and deployment tool for HashiCorp Nomad jobs that provides realtime feedback and detailed failure messages upon deployment issues.

Features

  • Realtime Feedback: Using watchers, Levant provides realtime feedback on Nomad job deployments allowing for greater insight and knowledge about application deployments.

  • Advanced Job Status Checking: Particularly for system and batch jobs, Levant ensures the job, evaluations and allocations all reach the desired state providing feedback at every stage.

  • Dynamic Job Group Counts: If the Nomad job is currently running on the cluster, Levant dynamically updates the rendered template with the relevant job group counts before deployment.

  • Failure Inspection: Upon a deployment failure, Levant inspects each allocation and logs information about each event, providing useful information for debugging without the need for querying the cluster retrospectively.

  • Canary Auto Promotion: In environments with advanced automation and alerting, automatic promotion of canary deployments may be desirable after a certain time threshold. Levant allows the user to specify a canary-auto-promote time period, which if reached with a healthy set of canaries, automatically promotes the deployment.

  • Multiple Variable File Formats: Currently Levant supports .json, .tf, .yaml, and .yml file extensions for the declaration of template variables.

  • Auto Revert Checking: In the event that a job deployment does not pass its healthy threshold and the job has auto-revert enabled; Levant tracks the resulting rollback deployment so you can see the exact outcome of the deployment process.

Download & Install

  • Official Levant binaries can be downloaded from the HashiCorp releases site.

  • Levant can be installed via the go toolkit using go get github.com/hashicorp/levant && go install github.com/hashicorp/levant

  • A docker image can be found on Docker Hub. The latest version can be downloaded using docker pull hashicorp/levant.

  • Levant can be built from source by firstly cloning the repository git clone git://github.com/hashicorp/levant.git. Once cloned, a binary can be built using the make dev command which will be available at ./bin/levant.

  • There is a Levant Ansible role available to help installation on machines. Thanks to @stevenscg for this.

  • Pre-built binaries of Levant from versions 0.2.9 and earlier can be downloaded from the GitHub releases page page. These binaries were released prior to the migration to the HashiCorp organization. For example: curl -L https://github.com/hashicorp/levant/releases/download/0.2.9/linux-amd64-levant -o levant

Templating

Levant includes functionality to perform template variables substitution as well as trigger built-in template functions to add timestamps or retrieve information from Consul. For full details please consult the templates documentation page.

Commands

Levant supports a number of command line arguments which provide control over the Levant binary. For detail about each command and its supported flags, please consult the commands documentation page.

Clients

Levant utilizes the Nomad and Consul official clients and configuration can be done via a number of environment variables. For detail about these please read through the clients documentation page.

Contributing

Community contributions to Levant are encouraged. Please refer to the contribution guide for details about hacking on Levant.

评论

暂无评论