Wiki System Kubernetes

Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications.

http://kubernetes.io/

Books and readings

Resources

Cookbook

Rollout / rollback using deployments

Tip article: How to rollout or rollback a deployment on a Kubernetes cluster?

Rollout

kubectl patch deployment $DEPLOYMENT \
        -p'{"spec":{"template":{"spec":{"containers":[{"name":"$CONTAINER","image":"$IMAGE"}]}}}}'

Rollback

kubectl rollout undo deployment/$DEPLOYMENT [--to-revision 42]

Status

kubectl rollout status deployment/$DEPLOYMENT

Google Cloud Platform (GCP)

Google Kubernetes Engine (GKE)

GKE is a managed Kubernetes cluster.

Checklist when things goes wrong:

  • K8S: Ingress -> Service -> Deployment -> ReplicaSet -> Pod
  • GC: Firewall rules matches the service exposed NodePort (describe service to get the port)
  • GC: L7 router configuration is correct (backend, routes, frontend)
  • GC: Health checks show green status.

Google Compute Engine (GCE)

Amazon Elastic Compute Cloude (EC2)

Amazon Elastic Container Service on Kubernetes (EKS)