Building Clustered Applications with Kubernetes and Docker

Building Clustered Applications with Kubernetes and Docker

Building Clustered Applications with Kubernetes and Docker Steve Watt Red Hat Emerging Technologies @wattsteve Why Docker? CC flickr bibbit @wattsteve Why Kubernetes? @wattsteve Kubernetes Architectural Overview Kubernetes Cluster Kubernetes Master Server(s) etcd API Server Scheduler Controller Manager Linux Server(s) Kubernetes Node Kubernetes Node Kubernetes Node Docker Kubelet Docker Kubelet Docker Kubelet Kubernetes Proxy Kubernetes Proxy Kubernetes Proxy Linux Server Linux Server Linux Server @wattsteve Installing Kubernetes • Hosted Services: Google Compute Engine • Support for a wide variety of Infrastructure (Azure, Rackspace, vSphere, AWS) • Support for several OS’ (RHEL, CentOS, Fedora, Debian, Ubuntu, Atomic, CoreOS) • Local but automated (Vagrant/Ansible) * Magic * • Local but manual (Fedora) * What I use * https://github.com/GoogleCloudPlatform/kubernetes/blob/ master/docs/getting-started-guides/fedora/ fedora_manual_config.md @wattsteve Awesome! Now, lets build an application CC flickr kk @wattsteve We’ll start by Defining and Deploying a Pod Kubernetes Cluster Kubernetes Node 1 NGINX Pod Browser NGINX Container Request Kubernetes Master Kubernetes Node 2 Other Pods Other Containers @wattsteve You might also want to add a ReplicationController Kubernetes Cluster Kubernetes Node 1 NGINX Pod Browser NGINX Container Request Kubernetes Master NGINX Pod ReplicationController Kubernetes Node 2 NGINX Pod Browser NGINX Container Request @wattsteve And add a Service to Proxy in front of it Kubernetes Cluster Kubernetes Node 1 NGINX Pod NGINX Container Kubernetes Master Browser NGINX Master Service Request NGINX Pod Kubernetes Node 2 ReplicationController NGINX Pod NGINX Container @wattsteve What about Persistence? Lets try out Volumes Volumes are specified in a Pod and mounted onto a specified path within a container. There are several kinds of Volumes: • hostPath (mount a persistent directory provided by host) • NFS (mount NFS share provided by a 3rd Party) Ephemeral • emptyDir (mount an ephemeral directory provided by host) File • GlusterFS Distributed File System (mount an adjacent GlusterFS volume) • Ceph Distributed File System (mount an adjacent CephFS volume) Block • GCEPersistentDisk (mount a GCE Block Device when in GCE) • Ceph Block (mount an adjacent Ceph Block Device) • ISCSI Block Devices (mount an adjacent ISCSI Block Device) @wattsteve For this example, we’re going to use GlusterFS Kubernetes Cluster Kubernetes Node 1 NGINX Pod NGINX Container Kubernetes Master Browser NGINX Master Service Request GlusterFS Volume NGINX Pod Kubernetes Node 2 ReplicationController NGINX Pod NGINX Container @wattsteve Debugging @wattsteve Thanks for Attending Interested in following up? Steve Watt [email protected] Examples: https://github.com/wattsteve/kubernetes/ @wattsteve .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    13 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us