by Matt Boersma - mboersma@deis.com
thanks to Gerred Dillon, Jason Hansen, and Kelsey Hightower!
“Kubernetes is an open-source system for managing containerized applications across multiple hosts in a cluster. Kubernetes provides mechanisms for application deployment, scheduling, updating, maintenance, and scaling.”
$ kubectl
kubectl controls the Kubernetes cluster manager.
Find more information at https://github.com/kubernetes/kubernetes.
Usage:
kubectl [flags]
kubectl [command]
Available Commands:
get Display one or many resources
describe Show details of a specific resource or group of resources
create Create a resource by filename or stdin
...
FROM alpine:3.3
# install common packages
RUN apk add --update-cache curl bash openssl sudo && rm -rf /var/cache/apk/*
# install etcdctl and confd
RUN apk add --update-cache curl tar \
&& curl -sSL https://github.com/coreos/etcd/releases/download/v2.2.1/etcd-v2.2.1-linux-amd64.tar.gz \
| tar -vxz -C /usr/local/bin --strip=1 etcd-v2.2.1-linux-amd64/etcdctl \
&& chown root:root /usr/local/bin/etcdctl \
&& curl -sSL -o /usr/local/bin/confd https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64 \
&& chmod +x /usr/local/bin/confd
# define execution environment
CMD ["/app/bin/boot"]
EXPOSE 8000
Runs containers and proxies service requests.
Supporting processes:
Represents a logical application.
Manages a replicated set of pods
Service discovery for pods.