Edureka Fan

Edureka Fan


Kubernetes StatefulSet Tutorial | StatefulSet Kubernetes Example | Kubernetes Training

This Edureka Kubernetes StatefulSet Tutorial video will help you understand what is StatefulSet and how it is different from Deployment. As an example, we create a simple pod specification with a container using the service Nginx. Below are the topics covered in this Kubernetes StatefulSet video :

  • 00:01:14 Why StatefulSet in Kubernetes?
  • 00:03:13 What is StatefulSet?
  • 00:05:13 StatefulSet vs Deployment
  • 00:08:41 StatefulSet Example
  • 00:15:19 StatefulSet Limitations


What is GEEK

Buddha Community

Kubernetes StatefulSet Tutorial | StatefulSet Kubernetes Example | Kubernetes Training
Christa  Stehr

Christa Stehr


50+ Useful Kubernetes Tools for 2020 - Part 2


Last year, we provided a list of Kubernetes tools that proved so popular we have decided to curate another list of some useful additions for working with the platform—among which are many tools that we personally use here at Caylent. Check out the original tools list here in case you missed it.

According to a recent survey done by Stackrox, the dominance Kubernetes enjoys in the market continues to be reinforced, with 86% of respondents using it for container orchestration.

(State of Kubernetes and Container Security, 2020)

And as you can see below, more and more companies are jumping into containerization for their apps. If you’re among them, here are some tools to aid you going forward as Kubernetes continues its rapid growth.

(State of Kubernetes and Container Security, 2020)

#blog #tools #amazon elastic kubernetes service #application security #aws kms #botkube #caylent #cli #container monitoring #container orchestration tools #container security #containers #continuous delivery #continuous deployment #continuous integration #contour #developers #development #developments #draft #eksctl #firewall #gcp #github #harbor #helm #helm charts #helm-2to3 #helm-aws-secret-plugin #helm-docs #helm-operator-get-started #helm-secrets #iam #json #k-rail #k3s #k3sup #k8s #keycloak #kiali #kiam #klum #knative #krew #ksniff #kube #kube-prod-runtime #kube-ps1 #kube-scan #kube-state-metrics #kube2iam #kubeapps #kubebuilder #kubeconfig #kubectl #kubectl-aws-secrets #kubefwd #kubernetes #kubernetes command line tool #kubernetes configuration #kubernetes deployment #kubernetes in development #kubernetes in production #kubernetes ingress #kubernetes interfaces #kubernetes monitoring #kubernetes networking #kubernetes observability #kubernetes plugins #kubernetes secrets #kubernetes security #kubernetes security best practices #kubernetes security vendors #kubernetes service discovery #kubernetic #kubesec #kubeterminal #kubeval #kudo #kuma #microsoft azure key vault #mozilla sops #octant #octarine #open source #palo alto kubernetes security #permission-manager #pgp #rafay #rakess #rancher #rook #secrets operations #serverless function #service mesh #shell-operator #snyk #snyk container #sonobuoy #strongdm #tcpdump #tenkai #testing #tigera #tilt #vert.x #wireshark #yaml

Harish Kadari


▷ Kubernetes Training | Certified Kubernetes Administrator Course

What is Kubernetes

Kubernetes is basically a system designed specifically to manage containerized applications of distinct kinds across a cluster of nodes. It was designed to address the disconnect between the way on which the modern, clustered infrastructure is designed. Almost all cluster technologies strive hard to provide a platform that’s distinctive or application deployment.

The user should not have to care about where scheduling of the work. The unit of the work presented to the user is at the service level and might be accomplished by any of the member nodes. On the flip side, many applications built with scaling in mind are literally created up services of the smaller element, that should be regular on the constant host. it’s even a lot of necessary once they trust specific networking conditions so as to communicate appropriately.

Want to become a Certified Kubernetes Application Developer ? Visit here to Certified Kubernetes Application Developer Training

Consider Applications rather Servers

Kubernetes, with its elegant abstractions, permits developers to accept applications rather servers of individual containers on specific Servers, pet servers, hostnames etc. Pods, replication services and controllers are the basic units of Kubernetes and are used to describe the system’s desired state. In Kubernetes, the deployment is handled based on the rules and moves towards a forward step further by proactively monitoring, scaling and auto-healing of these services to maintain their desired state.

Kubernetes Features:

Kubernetes helps users to quickly and efficiently respond to the demands of their customer with the following features as follows:

  • Helps to deploy any applications quickly and predictably.
  • Roll out new features seamlessly and Scale your applications on the fly
  • Limit the usage of hardware to required resources only.
  • Helps to relieve the burden of running applications in public and private clouds.

This tutorial provides a walkthrough about the basics of the Kubernetes cluster composition system. Each module consists of some background information on major features of kubernetes and concepts including an interactive online tutorial. This tutorial let the reader to manage a simple cluster and its containerized applications.

Basic Components of Kubernetes

Using these interactive Kubernetes Tutorial , you can learn how to:

  • Deploy an application that is containerized on a cluster
  • Debug the containerized application and to Scale
  • Update the containerized application using a new software version.

Kubernetes Architecture
H3 Master Components
The systems like CoreOS, which are at infrastructure level strives hard to create an environment that is uniform where each host is interchangeable and disposable. On the other side, Kubernetes operates with a particular level of host specialization.

Kubernetes cluster controlling services are known as the master or control plane components. These operates according to the primary management contact point for administrators and also provides several cluster wide systems for the relatively dumb worker nodes, which can be installed on a single machine or distributed across multiple ones.

The cluster architecture follows client-server architecture with a master installed on one machine and the nodes on separate Linux machines.

Master Components of Kubernetes Master Machine: The key components of Kubernetes are as follows:

Subscribe to our youtube channel to get new updates…!

It stores the information related to configuration that can be used by the cluster nodes. It is with high availability key value store distributed among multiple nodes and with a distributed key value store can accessible only by Kubernetes API server as it may be of some sensitive information.

API Server
Kubernetes, an API server implements all the operations on cluster using distinct tools and libraries which can readily communicate. Kubeconfig is used to expose Kubernetes API, comes with the server side tools and can be used for communication.

Controller Manager
This function of this component is to regulate the state of the clusters and perform a task and is mostly for collectors. It runs in a non terminating loop and is responsible for sending and collecting information to API server. To bring the server to desired state, it collects shared data and make changes. Its key controllers include replication controller, namespace controller, service account controller and endpoint controller. The controller manager runs distinct kinds of controllers to handle nodes, endpoints etc.

Being one of the key components of Kubernetes master, it is responsible for workload distribution and for tracking work utilization load on cluster nodes and then placing them on the available resources by accepting the workload. In short, it is responsible for allocating pods to available nodes and is responsible for workload utilization.

Get ahead in your career by learning CKAD through Mindmajix CKAD Training.
Components of Kubernetes Node
Following are the key components of Node server that are necessary to communicate with Kubernetes master.

Docker - Docker being the primary requirement of any node helps in running any encapsulated application containers and lightweight operating environment.

Kubelet Service - The service in each node is responsible for relaying information both to and from the control plane by interacting with etcd store to read the values of configuration and wright. It assumes the responsibility in maintaining work state and the node, also manages network rules, port forwarding, etc.

Kubernetes Proxy Service - This is a proxy service that runs on nodes and helps in making services that are available to external host. It is responsible for forwarding request to correct containers and performs primitive load balancing and ensures that the networking environment is accessible, predictable as well as isolated. Any key function of this is to manage secrets, pods on node, volumes, new container creation, etc.

Setting Kubernetes - It is necessary to set up a virtual Data Center(VDC) for setting up Kubernetes, which can be considered as a set of machines responsible for communicating each other via the network.

Once the IaaS setup on any cloud is complete, you need to configure the Master and the Node.

After setting up the IaaS on any cloud, configuring the Master and the Node should be done.


Docker Installation − Docker is necessary for every Kubernetes installation. Steps to install the Docker are as follows:
Step 1 − Log on to the machine with login credentials of root user.
Step 2 − Using an apt package, update the package information
Step 3 − Run the following commands.Step 4 − Add the new GPG key.

Add the new GPG key Certified Kubernetes Application Developer Certification Training! Explore Curriculum Step 5 − Update the API package image.

$ sudo apt-get update

After completing the above tasks, start with the actual Docker engine installation by verifying the kernel version

Docker Engine Installation
Run the following commands to install the Docker engine.

Step 1 − Logon to the machine.
Step 2 − Index package updating.

$ sudo apt-get update
Step 3 − Using the following command, update the information.

$ sudo apt-get install docker-engine
Step 4 − Start the Docker daemon.

$ sudo apt-get install docker-engine
Step 5 − Using the below command, verify the installation of Docker engine.

$ sudo docker run hello-world
Install etcd 2.0

Run the commands following in or to install Kubernetes Master Machine.

In the above set of command −
After downloading the etcd, Save it with a specified name and then un-tar the tar package.
Make a dir. Within the /opt named bin and then copy the extracted file to the targeted location.
Now, we can build Kubernetes by installing it on all the machines on the cluster.
Build Kubernetes by installing machines on the cluster

The above command will create a _output dir in the root of the kubernetes folder. Now, we have to extract the directory into any of the directory of our choice /opt/bin, etc.
Networking part is the next coming one need to step up with the Kubernetes master and node setup. To make this, making an entry in the host file has to be done on the node machine.

Following will be the output of the above command.

Now, actual configuration starts on Kubernetes Master.

Start with copying all the configuration files to their correct location.

copying all the configuration files The above command will copy all the configuration files to the required location. Now we will come back to the same directory where we have built the Kubernetes folder. built the Kubernetes folder The next step is to update the copied configuration file under /etc. dir.

Configure etcd on master using the following command.

$ ETCD_OPTS = “-listen-client-urls = http://kube-master:4001

Deploying an Application using Kubernetes
To deploy an application in Kubernetes, Kubeapps is the easiest and quick way. It is the Kubernetes Dashboard that supercharges cluster with simple browse and app deployment in any format. It also provides a complete application delivery environment to empower users to launch, review and share applications. Kubeapps is an open-source project designed to encourage to check out the latest version. It can be deployed in cluster in minutes.

Project in the Kubeapps includes the following:


This is mostly used to supercharge the cluster and bootstrap kubeapps to run Kubeapps CLI tool in the terminal window. The complete application delivery environment can be installed with a single command.


For Simplified deployment, Kubeapps provides an in-cluster toolset of over 100 kubernetes ready applications that are packaged as Helm charts and kubeless functions.


This is an web based community designed to discover, rate and review pre-packaged kubernetes applications, which are accessible with kubernetes cluster.

Why Kubernetes
Kubernetes at a minimum can Schedule and run utility packing containers on clusters of each bodily and digital machines. but, it additionally permits builders to ‘cut the cord’ to bodily and digital machines, transferring from a number-centric infrastructure to a field-centric one providing several advantages that inherit to containers. It provides the infrastructure required to build a complete container-centric development environment. Kubernetes comes with an underlying technology to Docker,that has already baked into the Linux Kernel for some time.

Kubernetes allows users to deploy cloud native applications and manage them exactly according to their requirement anywhere and at every point of time. Its key features include:

  • An Infrastructure framework for today
  • Modularity for better Management
  • Updating and Deploying software for Scale
  • Laying a strong foundation for Cloud-native apps

In addition to these, Kubernetes allows users to derive maximum container utility and build cloud-native applications thus enable to run independent of cloud-specific requirements anywhere. Clearly, it is the most effective model for application development and operations in a quick and easy way.

#kubernetes training #certified kubernetes administrator #cka online training #kubernetes

Maud  Rosenbaum

Maud Rosenbaum


Kubernetes in the Cloud: Strategies for Effective Multi Cloud Implementations

Kubernetes is a highly popular container orchestration platform. Multi cloud is a strategy that leverages cloud resources from multiple vendors. Multi cloud strategies have become popular because they help prevent vendor lock-in and enable you to leverage a wide variety of cloud resources. However, multi cloud ecosystems are notoriously difficult to configure and maintain.

This article explains how you can leverage Kubernetes to reduce multi cloud complexities and improve stability, scalability, and velocity.

Kubernetes: Your Multi Cloud Strategy

Maintaining standardized application deployments becomes more challenging as your number of applications and the technologies they are based on increase. As environments, operating systems, and dependencies differ, management and operations require more effort and extensive documentation.

In the past, teams tried to get around these difficulties by creating isolated projects in the data center. Each project, including its configurations and requirements were managed independently. This required accurately predicting performance and the number of users before deployment and taking down applications to update operating systems or applications. There were many chances for error.

Kubernetes can provide an alternative to the old method, enabling teams to deploy applications independent of the environment in containers. This eliminates the need to create resource partitions and enables teams to operate infrastructure as a unified whole.

In particular, Kubernetes makes it easier to deploy a multi cloud strategy since it enables you to abstract away service differences. With Kubernetes deployments you can work from a consistent platform and optimize services and applications according to your business needs.

The Compelling Attributes of Multi Cloud Kubernetes

Multi cloud Kubernetes can provide multiple benefits beyond a single cloud deployment. Below are some of the most notable advantages.


In addition to the built-in scalability, fault tolerance, and auto-healing features of Kubernetes, multi cloud deployments can provide service redundancy. For example, you can mirror applications or split microservices across vendors. This reduces the risk of a vendor-related outage and enables you to create failovers.

#kubernetes #multicloud-strategy #kubernetes-cluster #kubernetes-top-story #kubernetes-cluster-install #kubernetes-explained #kubernetes-infrastructure #cloud

sneha cynix


Create Virtual Machines.
Let us create the required number of virtual machines for setting up cluster using the preferred operating system. Here, I am going with Ubuntu-18.04.3. I have planned to setup a cluster using single control plane(master) and three worker nodes.

Each node should be equipped with at least 2GB memory, 20GB disk space and 2vCPUs. To make the disk space usage optimal in VMware, enable thin provisioning while creating virtual disk.

Let us customise the virtual machines with the preferred configuration and start booting through ISO. Once the virtual machines are created successfully, go ahead with the below steps to configure a Kubernetes cluster. Kubernetes online training helps you to learn more techniques and skills.

Setup Networking
Based on your networking solution, configure network settings in the virtual machines. Ensure that all the machines are connected to each other.

Setup hostname(Optional)
Setup meaningful hostname in all the nodes if necessary.

sudo hostnamectl set-hostname
Reboot the machine to make the change effective.

Enable ssh on the machines
If ssh is not configured, install openssh-server on the virtual machines and enable connectivity between them.

sudo apt-get install openssh-server -y
Disable swap on the virtual machines.
As a super user, disable swap on all the machines. Execute the below command to disable swap on the machines.

swapoff -a
In order to disable swap permanently , comment out swap entry in /etc/fstabfile.

This can be verified using the following command.

root@host1:~# free -h total used free shared buff/cache availableMem: 7.8G 990M 6.0G 13M 797M 6.6GSwap: 2.0G 0B 2.0G
Note: This has to be done on all the machines.

Install necessary Packages
Let us install curl and apt-transport-https in all the machines.

sudo apt-get update && sudo apt-get install -y apt-transport-https curl
Obtain the Key for the kubernetes repository and add it to your local key-manager by executing the below command.

root@host1:~# curl -s | sudo apt-key add -OK
After adding the above key, execute the below command to add the kubernetes repo to your local system.

cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.listdeb kubernetes-xenial mainEOF
kubeadm, kubectl and kubelet installation
After adding the above install kubeadm, kubelet and kubectl in all the machines.

sudo apt-get updatesudo apt-get install -y kubelet kubeadm kubectl
After installing the above packages, let us hold them as it is in the machine by executing the following command.

root@host1:~# sudo apt-mark hold kubelet kubeadm kubectlkubelet set on hold.kubeadm set on hold.kubectl set on hold.
Install Container Runtime
In each node, container runtime (CRI) component should be installed to manage the containers. In this setup, I will install the container runtime docker by executing the below command.

sudo apt-get install -y
Install Control plane
In the master node, execute kubeadm init command to deploy control plane components

kubeadm init --pod-network-cidr=
When the above command execution is successful, it will yield a command to be executed on all the worker nodes to configure them with the master.

Worker nodes.
After configuring the master node successfully, configure the worker nodes by executing the join command displayed in master node.

kubeadm join x.x.x.x:6443 --token \ --discovery-token-ca-cert-hash
Accessing Cluster
You can communicate with the cluster components using kubectl interface. In order to communicate, you need kubernetes cluster config file to be placed in the home directory of the user from where you want to access the cluster. Once the cluster is created, a file named admin.conf will be generated in /etc/kubernetes directory. This file has to be copied to the home directory of target user. Kubernetes online course helps you to learn more effectively.

Let us execute the below commands from the non-root user to access cluster from that respective user.

mkdir -p $HOME/.kubesudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/configsudo chown $(id -u):$(id -g) $HOME/.kube/config
After setting up the kubeconfig file , check the node status. All the machines will be in not ready state.

k8s@master:~$ kubectl get nodesNAME STATUS ROLES AGE VERSIONmaster NotReady master 5m41s v1.17.2host1 NotReady 3m2s v1.17.2host2 NotReady 2m58s v1.17.2host3 NotReady 2m54s v1.17.2
And you can observe that coredns pod is not started.

NAMESPACE NAME READY STATUS RESTARTS AGEkube-system coredns-6955765f44-9nlw5 0/1 Pending 0 4m33skube-system coredns-6955765f44-wjxj2 0/1 Pending 0 4m33skube-system etcd-master 1/1 Running 0 4m45skube-system kube-apiserver-master 1/1 Running 0 4m45skube-system kube-controller-manager-master 1/1 Running 0 4m45skube-system kube-proxy-bzcbw 1/1 Running 0 2m6skube-system kube-proxy-clmpz 1/1 Running 0 2m14skube-system kube-proxy-crx5v 1/1 Running 0 4m32skube-system kube-proxy-xcmlv 1/1 Running 0 2m10skube-system kube-scheduler-master 1/1 Running 0 4m45s
This will be resolved when you deploy network CNI plugin in the cluster. Here, I will deploy calico by executing the following command in the master node. online kubernetes course for more.

kubectl apply -f
In next few minutes, your cluster will be created successfully. Check the node status and

ensure the successful creation.

k8s@master:~$ kubectl get nodesNAME STATUS ROLES AGE VERSIONmaster Ready master 50m v1.17.2host1 Ready 47m v1.17.2host2 Ready 47m v1.17.2host3 Ready 47m v1.17.2
You can check the cluster state by executing the following command.

k8s@master:~$ kubectl get pods --all-namespacesNAMESPACE NAME READY STATUS RESTARTS AGEdefault abc1-b95b76d84-2qmhw 1/1 Running 0 2m41skube-system calico-kube-controllers-5c45f5bd9f-r9rxj 1/1 Running 0 4m59skube-system calico-node-bd4tx 1/1 Running 0 5mkube-system calico-node-lxk75 1/1 Running 0 5mkube-system calico-node-zmnn4 1/1 Running 0 5mkube-system calico-node-zzvhk 1/1 Running 0 5mkube-system coredns-6955765f44-9nlw5 1/1 Running 0 10mkube-system coredns-6955765f44-wjxj2 1/1 Running 0 10mkube-system etcd-master 1/1 Running 0 10mkube-system kube-apiserver-master 1/1 Running 0 10mkube-system kube-controller-manager-master 1/1 Running 0 10mkube-system kube-proxy-bzcbw 1/1 Running 0 8m19skube-system kube-proxy-clmpz 1/1 Running 0 8m27skube-system kube-proxy-crx5v 1/1 Running 0 10mkube-system kube-proxy-xcmlv 1/1 Running 0 8m23skube-system kube-scheduler-master 1/1 Running 0 10m
Now, the kubernetes cluster has been created successfully. You can verify this by setting up a deployment/pod.

k8s@master:~$ kubectl create deploy nginx --image=nginxdeployment.apps/nginx created
You can check the pod status by executing the below command.

k8s@master:~$ kubectl get podsNAME READY STATUS RESTARTS AGEnginx-86c57db685-rpzm2 1/1 Running 0 70s
Deleting cluster.
Kubernetes cluster can be teared down by executing the below single command.

sudo kubeadm reset
Thus, a cluster can be deleted.

#kubernetes training #kubernetes course #kubernetes online course #cka training #kubernetes certification training

Edureka Fan

Edureka Fan


Kubernetes StatefulSet Tutorial | StatefulSet Kubernetes Example | Kubernetes Training

This Edureka Kubernetes StatefulSet Tutorial video will help you understand what is StatefulSet and how it is different from Deployment. As an example, we create a simple pod specification with a container using the service Nginx. Below are the topics covered in this Kubernetes StatefulSet video :

  • 00:01:14 Why StatefulSet in Kubernetes?
  • 00:03:13 What is StatefulSet?
  • 00:05:13 StatefulSet vs Deployment
  • 00:08:41 StatefulSet Example
  • 00:15:19 StatefulSet Limitations