Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 17, 2021. It is now read-only.
/kubecfgPublic archive

A tool for managing complex enterprise Kubernetes environments as code.

License

NotificationsYou must be signed in to change notification settings

vmware-archive/kubecfg

Build StatusGo Report Card

WARNING: kubecfg is no longer actively maintained by VMware.

VMware has made the difficult decision to stop driving this project and therefore we will no longer actively respond to issues or pull requests. The project will be externally maintained in the following fork:https://github.com/kubecfg/kubecfg

Thank You.

Overview

A tool for managing Kubernetes resources as code.

kubecfg allows you to express the patterns across yourinfrastructure and reuse these powerful "templates" across manyservices, and then manage those templates as files in version control.The more complex your infrastructure is, the more you will gain fromusing kubecfg.

Yes, Google employees will recognise this as being very similar to asimilarly-named internal tool ;)

Install

Pre-compiled executables exist for some platforms ontheGithub releasespage.

On macOS, it can also be installed viaHomebrew:brew install kubecfg

To build from source:

%PATH=$PATH:$GOPATH/bin%go get github.com/bitnami/kubecfg

Quickstart

#Show generated YAML%kubecfg show -o yaml examples/guestbook.jsonnet#Create resources%kubecfg update examples/guestbook.jsonnet#Modify configuration (downgrade gb-frontend image)%sed -i.bak'\,gcr.io/google-samples/gb-frontend,s/:v4/:v3/' examples/guestbook.jsonnet#See differences vs server%kubecfg diff examples/guestbook.jsonnet#Update to new config%kubecfg update examples/guestbook.jsonnet#Clean up after demo%kubecfg delete examples/guestbook.jsonnet

Features

  • Supports JSON, YAML or jsonnet files (by file suffix).
  • Best-effort sorts objects before updating, so that dependencies arepushed to the server before objects that refer to them.
  • Additional jsonnet builtin functions. Seelib/kubecfg.libsonnet.
  • Optional "garbage collection" of objects removed from config (see--gc-tag).

Infrastructure-as-code Philosophy

The idea is to describeas much as possible about your configurationas files in version control (eg: git).

Changes to the configuration follow a regular review, approve, merge,etc code change workflow (github pull-requests, phabricator diffs,etc). At any point, the config in version control captures the entiredesired-state, so the system can be easily recreated in a QA clusteror to recover from disaster.

Jsonnet

Kubecfg relies heavily onjsonnet to describeKubernetes resources, and is really just a thin Kubernetes-specificwrapper around jsonnet evaluation. You should read the jsonnettutorial, and skim the functions available in the jsonnetstdlibrary.

Community

Clickhere to sign up to the Kubernetes Slack org.

About

A tool for managing complex enterprise Kubernetes environments as code.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp