This is the documentation for version 0.39. For documentation on the latest version of kpt, please see kpt.dev.

Bootstrapping

Bootstrap a package with content generated or published from another source.

Fetched from another package

Fetch another package and use it as your starting point (e.g. kubernetes-examples)

kpt pkg get https://github.com/GoogleContainerTools/kpt.git/package-examples/helloworld-set@v0.3.0 helloworld

Generated from cli tools

Generate configuration from commandline tools (e.g. kubectl)

kubectl create deployment nginx --image nginx -o yaml --dry-run > deploy.yaml

Copied from examples or blog posts

Some examples may be published as blog posts without being published as a package in git. These can be copied directly from their source.

curl https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/controllers/nginx-deployment.yaml --output nginx/nginx-deployment.yaml

Generated from DSLs or templates

Generate configuration from templates (e.g. helm)

helm fetch stable/mysql
helm template mysql-1.3.1.tgz --output-dir .

Generated from code

Generate configuration from application source code (e.g. dekorate)

mvn clean package

Last modified March 18, 2020: Fix docsy hugo theme (b6557dc5)