Book Image

Troubleshooting Docker

By : Vaibhav Kohli, Rajdeep Dua, John Wooten
Book Image

Troubleshooting Docker

By: Vaibhav Kohli, Rajdeep Dua, John Wooten

Overview of this book

You?re pro Docker? You?ve read all about orchestration with Docker in books? Now learn how to troubleshoot Docker in practice. Gain all the tools to safely see Docker in action with this 2017 book.
Table of Contents (17 chapters)
Troubleshooting Docker
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Free Chapter
1
Understanding Container Scenarios and an Overview of Docker

Deploying Kubernetes on Bare Metal machine


Kubernetes can be deployed on the Bare Metal Fedora or Ubuntu machines. Even the Fedora and Ubuntu virtual machine can be deployed in vSphere, workstation, or VirtualBox. For the following tutorial, we'll be looking at Kubernetes deployment on a single Fedora 24 machine, which will be acting as master, as well as node to deploy k8s pods:

  1. Enable the Kubernetes testing YUM repository:

            yum -y install --enablerepo=updates-testing kubernetes
    
  2. Install etcd and iptables-services:

            yum -y install etcd iptables-services
    
  3. In /etcd/hosts, set the Fedora master and Fedora node:

            echo "192.168.121.9  fed-master 
            192.168.121.65  fed-node" >> /etc/hosts
    
  4. Disable the firewall and iptables-services:

            systemctl disable iptables-services firewalld 
            systemctl stop iptables-services firewalld 
    
  5. Edit the /etcd/kubernetes/config file:

            # Comma separated list of nodes in the etcd cluster
            KUBE_MASTER...