Book Image

The DevOps 2.3 Toolkit

By : Viktor Farcic
Book Image

The DevOps 2.3 Toolkit

By: Viktor Farcic

Overview of this book

Building on The DevOps 2.0 Toolkit, The DevOps 2.1 Toolkit: Docker Swarm, and The DevOps 2.2 Toolkit: Self-Sufficient Docker Clusters, Viktor Farcic brings his latest exploration of the DevOps Toolkit as he takes you on a journey to explore the features of Kubernetes. The DevOps 2.3 Toolkit: Kubernetes is a book in the series that helps you build a full DevOps Toolkit. This book in the series looks at Kubernetes, the tool designed to, among other roles, make it easier in the creation and deployment of highly available and fault-tolerant applications at scale, with zero downtime. Within this book, Viktor will cover a wide range of emerging topics, including what exactly Kubernetes is, how to use both first and third-party add-ons for projects, and how to get the skills to be able to call yourself a “Kubernetes ninja.” Work with Viktor and dive into the creation and exploration of Kubernetes with a series of hands-on guides.
Table of Contents (18 chapters)
16
The End
17
Other Books You May Enjoy

Giving others access to the cluster

Unless you're planning to be the only person in your organization with the access to the cluster, you'll need to create a kubectl configuration that you can distribute to your coworkers. Let's see the steps:

cd cluster
    
mkdir -p config
    
export KUBECONFIG=$PWD/config/kubecfg.yaml  

We went back to the cluster directory, created the sub-directory config, and exported KUBECONFIG variable with the path to the file where we'd like to store the configuration. Now we can execute kops export:

kops export kubecfg --name ${NAME}
    
cat $KUBECONFIG  

The output of the latter command is as follows:

apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: ...
    server: https://api-devops23-k8s-local-ivnbim-609446190.us-east-2.elb.amazonaws.com
  name: devops23.k8s.local
contexts:
- context:
    cluster: devops23...