Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Quickstart

All commands in this quickstart are run in the examples directory using the guestbook code

WARNING All commands will use the currently defined context similar to kubectl , be sure not to run these commands with the wrong context

# Show generated YAML
% kubecfg show -o yaml examples/guestbook.jsonnet
# Create resources in the kubernetes cluster defined in the current context
% kubecfg update examples/guestbook.jsonnet
# Modify _something_ (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 the kubernetes resources to the new configuration
% kubecfg update examples/guestbook.jsonnet
# Clean up after demo
% kubecfg delete examples/guestbook.jsonnet