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
{ | |
"apiVersion": "v1beta1", | |
"items": [ | |
{ | |
"apiVersion": "v1beta1", | |
"containerPort": 8080, | |
"id": "frontend", | |
"kind": "Service", | |
"port": 5432, | |
"selector": { |
<section> | |
<section id='Docker-Develop-and-Deploy' data-markdown> | |
##Docker: | |
# Develop | |
and | |
# Deploy | |
http://bit.ly/dev-deploy-linuxcon2015 | |
</section> | |
<section data-markdown id='timestamp'> |
<section> | |
<section id='OpenShift-Container-Matrix' data-markdown> | |
# OpenShift | |
## Container Matrix | |
http://bit.ly/container-matrix | |
</section> | |
<section data-markdown id='timestamp'> | |
#### OpenShift: Container Matrix |
<section data-transition="linear"> | |
<section id='deploy-scale-build' data-markdown> | |
### Docker, Kubernetes, OpenShift: | |
## Deploy, Scale, Build | |
[bit.ly/devconf-deploy](http://bit.ly/devconf-deploy) | |
Saturday, Feb 6th 10:40 A113 | |
</section> | |
<section id='by-ryanj' data-state="blackout"> |
# static-builder | |
FROM openshift/base-centos7 | |
# TODO: Put the maintainer name in the image metadata | |
MAINTAINER Dale Bewley <[email protected]> | |
# TODO: Rename the builder environment variable to inform users about application you provide them | |
ENV BUILDER_VERSION 1.0 | |
# TODO: Set labels used in OpenShift to describe the builder image |
<section data-transition="linear"> | |
<section id='sfk8s'> | |
<h1>#SFK8s</h1> | |
<h2>K8s Extensions</h2> | |
<p>and</p> | |
<h2>Upstream Development</h2> | |
<p>from</p> | |
<h1>Red Hat</h1> | |
<p><a href='https://youtu.be/aHaVmMnPN5Y'>Wednesday, April 27, 2016</a></p> | |
<p><a href='http://bit.ly/sfk8s-openshift-extensions'>bit.ly/sfk8s-openshift-extensions</a></p> |
FROM ryanj/centos7-nodejs:current | |
# Available NodeJS release tags are listed here: | |
# https://hub.docker.com/r/ryanj/centos7-nodejs/tags/ | |
# To use this Dockerfile, your app should listen on | |
# port 8080 when initialized with "npm start" | |
# Remember to include your own MAINTAINER info: | |
MAINTAINER ryanj <[email protected]> |
<section data-transition="linear"> | |
<section id='OpenShift-Demos-from-Red-Hat-Summit'> | |
<h1>OpenShift Demos</h1> | |
<h3>from</h3> | |
<h1>Red Hat Summit</h1> | |
<h3><i>2016</i></h3> | |
<a href='http://bit.ly/openshift-rhsummit'>bit.ly/openshift-rhsummit</a> | |
</section> | |
<section id='videos'> | |
<h2>OpenShift Demo Video from OSCON</h2> |
set -g default-terminal "screen-256color" | |
# change prefix command to C-z | |
set -g prefix C-z | |
unbind C-b | |
bind C-z last-window | |
bind z send-prefix | |
# setup | and - for window splitting | |
unbind % | |
bind | split-window -h |