You are previewing CoreOS Essentials.
O'Reilly logo
CoreOS Essentials

Book Description

Develop effective computing networks to deploy your applications and servers using CoreOS

In Detail

This book will help you get up and running on using CoreOS to develop effective computing networks. You will begin with understanding the basics of CoreOS. You will then discover what etcd is and how it is used, followed by launching Docker containers with systemd and fleet. Learn how to manage clusters, read system logs, and customize with cloud-config. You will set up the deployment to production using Docker builder and a private Docker registry. You will also see how to set up and use CoreUpdate and Enterprise Registry, and get an introduction to the new App Container called rkt and the newly introduced cluster manager known as Kubernetes.

This book will equip you with all the information you need to leverage the power of CoreOS and the related containers for the effective deployment of your applications.

What You Will Learn

  • Install and set up CoreOS on your machine and learn more about etcd

  • Write and deploy systemd and fleet units

  • Customize your clustering machines with cloud-config

  • Set up your Docker container's deployment

  • Configure cluster Central Services and release channels

  • Familiarize yourself with free as well as paid CoreOS services

  • Get an overview of CoreOS rkt, a new App Container runtime

  • Learn about Kubernetes and set up its cluster

  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you.

    Table of Contents

    1. CoreOS Essentials
      1. Table of Contents
      2. CoreOS Essentials
      3. Credits
      4. About the Author
      5. About the Reviewers
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. CoreOS – Overview and Installation
        1. An overview of CoreOS
        2. How CoreOS works
        3. Installing the CoreOS virtual machine
          1. Cloning the coreos-vagrant GitHub project
          2. Working with cloud-config
          3. Startup and SSH
        4. Summary
      9. 2. Getting Started with etcd
        1. Introducing etcd
        2. Reading and writing to etcd from the host machine
          1. Logging in to the host
          2. Reading and writing to ectd
        3. Reading and writing from the application container
        4. Watching changes in etcd
        5. TTL (time to live) examples
        6. Use cases of etcd
        7. Summary
      10. 3. Getting Started with systemd and fleet
        1. Getting started with systemd
          1. An overview of systemd
          2. The systemd unit files
          3. An overview of systemctl
        2. Getting started with fleet
          1. The fleet unit files
          2. An overview of fleetctl
        3. References
        4. Summary
      11. 4. Managing Clusters
        1. Determining the optimal etcd cluster size
        2. Bootstrapping a local cluster
          1. Cloning the coreos-vagrant project
          2. Customizing a cluster via the cloud-config file
          3. Scheduling a fleet unit in the cluster
        3. References
        4. Summary
      12. 5. Building a Development Environment
        1. Setting up the local development environment
          1. Setting up the development VM
          2. What happened during the VM installation?
          3. Deploying the fleet units
        2. Bootstrapping a remote test/staging cluster on GCE
          1. Test/staging cluster setup
            1. Creating our cluster workers
            2. Running fleetctl commands on the remote cluster
        3. References
        4. Summary
      13. 6. Building a Deployment Setup
        1. Code deployment on Test and Staging servers
          1. Deploying code on servers
        2. Setting up the Docker builder and private Docker registry worker
          1. Server setup
        3. Summary
      14. 7. Building a Production Cluster
        1. Bootstrapping a remote production cluster on GCE
          1. Setting up the production cluster
        2. Deploying code on production cluster servers
          1. Setting up the Docker builder server
          2. Deploying code on production servers
        3. An overview of the Dev/Test/Staging/Production setup
        4. PaaS based on fleet
          1. Deploying services using PAZ
        5. Another cloud alternative for running CoreOS clusters
        6. Summary
      15. 8. Introducing CoreUpdate and Container/Enterprise Registry
        1. Update strategies
          1. Automatic updates
          2. Uses of update strategies
        2. CoreUpdate
        3. Container Registry
          1. overview
        4. Enterprise Registry
        5. Summary
      16. 9. Introduction to CoreOS rkt
        1. An introduction to rkt
          1. Features of rkt
          2. The basics of App container
          3. Using rkt
          4. rkt networking
          5. rkt environment variables
          6. rkt volumes
        2. Running streamlined Docker images with rkt
        3. Converting Docker images into ACI
        4. Summary
      17. 10. Introduction to Kubernetes
        1. What is Kubernetes?
          1. Primary components of Kubernetes
        2. Kubernetes cluster setup
        3. Tectonic – CoreOS and Kubernetes combined for a commercial implementation
        4. Summary
      18. Index