dev-ops

command
v0.0.0-...-f36290b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2018 License: MIT Imports: 12 Imported by: 0

README

Prerequisites: Tested test-webserver image.

Build and run Go executables

go build -o ./blue-green-deployment blue-green-deployment.go 
./blue-green-deployment

View service labels

kubectl get service -l app=webserver -o jsonpath='{.items[0].metadata.name}{": env="}{.items[0].spec.selector.env}{"\n"}{.items[1].metadata.name}{": env="}{.items[1].spec.selector.env}{"\n"}'

View container images

kubectl get pods -l env=production -o jsonpath='{.items[*].spec.containers[0].image}{"\n"}'

View rollout history of production deployment

kubectl rollout history deploy/webserver-prod-deployment

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL