Kubectl output options
Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
##How Homakov hacked GitHub and the line of code that could have prevented it
Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.
If you'd like to follow me on twitter my handle is @peternixey
|# ^^^ YAML documents must begin with the document separator "---"|
|#### Example docblock, I like to put a descriptive comment at the top of my|
|# Overview: Playbook to bootstrap a new host for configuration management.|
|# Applies to: production|
|# Ensures that a host is configured for management with Ansible.|
This is a little trick I use to spin up the packages instalation on Debian/Ubuntu boxes in Vagrant.
I add a simple function that checks if a directory named something similar to
~/.vagrant.d/cache/apt/opscode-ubuntu-12.04/partial (it may have another path in Windows or MacOS) and create the directory if it doesn't already exist.
def local_cache(basebox_name) cache_dir = Vagrant::Environment.new.home_path.join('cache', 'apt', basebox_name) partial_dir = cache_dir.join('partial') partial_dir.mkdir unless partial_dir.exist? cache_dir
|# A knife exec script to change chef node's name, preserving all the attributes.|
|# Usage: knife exec rename-node.rb old-name new-name|
|# Script retrieves the Node object, changes its 'name' attribute,|
|# creates new Node object with updated name and rest of attributes|
|# untouched. Then it deletes old Node and Client objects from|
|# database, and logs into the server to update it:|
# This example does an AJAX lookup and is in CoffeeScript $('.typeahead').typeahead( # source can be a function source: (typeahead, query) -> # this function receives the typeahead object and the query string
|# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html|
|Hi everyone, I'm Chris Wanstrath.|
|When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But|
|then I took a few moments and thought, Wait, why? Why me? What am I supposed|
|to say that's interesting? Something about Ruby, perhaps. Maybe the|
|future of it. The future of something, at least. That sounds|
This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.
# Ensure system is in ship-shape. aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev