(Highly available, secure, and fully managed Kubernetes service)
Azure Kubernetes Service (AKS) manages your hosted Kubernetes environment, making it quick and easy to deploy and manage containerized applications.
Create AKS cluster using Azure Portal
Sign in to the Azure portal at https://portal.azure.com.
If you don’t have an account, sign up for the free tier. You will get a $ 200 credit with 1-month validity.
Step 1: In the top search bar, search with AKS and click on “Kubernetes Service” and click on “Add”
Labels selectors are core grouping primitive in Kubernetes. They are used by the users to select a set of objects. Kubernetes API currently supports two types of selectors − Equality-based selectors.
You can constrain a pod to run only on particular nodes. The recommended approach to do this is to use label selectors to make the selection.
Following are the types of Kubernetes selector.
Kubernetes namespace is an abstraction to support multiple virtual clusters on the same physical cluster.
You can have multiple namespaces within one Kubernetes cluster, and they are all logically isolated from one another.
Namespaces provide a logical separation of cluster resources between multiple users, teams, projects, and even customers. Namespaces are how to divide cluster resources between multiple users (via resource quota).
Namespaces have below functionalities and on basis of the same we tend to use will use them.
Like other controllers, DaemonSets manage groups of replicated Pods.
However, DaemonSet ensures that all or selected Worker Nodes run a copy of a Pod (one-Pod-per-node).
As you add nodes, DaemonSets automatically add Pods to the new nodes. As the nodes are removed from the cluster, those Pods are garbage collected.
Here is the manifest of DaemonSet:
- name: fluentd
Create a daemonset:
kubectl create -f daemonset.yamldaemonset.apps "fluentd" created
Check the pod running:
Google Kubernetes Engine (also known as GKE) is a managed, production-ready environment for running Docker containers in the Google cloud.
It permits you to form multiple-node clusters whereas conjointly providing access to any or all Kubernetes options.
I have added all technical blogs in this publication, Interested ones can follow this publication in the medium for all the latest articles of Cloud / DevOps and Kubernetes
Monitoring is one of the key components for managing large clusters. For this, we have a number of tools.
It is a monitoring and alerting system. It was built at SoundCloud and was open-sourced in 2012. It handles the multi-dimensional data very well.
Prometheus has multiple components to participate in monitoring −
A PersistentVolume (PV) is a storage resource in the cluster that has been provisioned by an administrator or dynamically provisioned using Storage Classes.
A cluster administrator creates several PVs. They carry the details of the real storage, which is available for use by cluster users.
Before you can use an EBS volume with a Pod, you need to create it.
aws ec2 create-volume \--availability-zone=eu-west-1a \--size=100 \--volume-type=gp2PersistentVolume spec:
In this article, we will learn how to schedule jobs and cronjobs to Kubernetes Cluster.
A job creates one or more Pods and will continue to retry execution of the Pods until a specified number of them successfully terminate. As pods are completed, the Job tracks the successful completions. When a specified number of successful completions is reached, the task (ie, Job) is complete. Deleting a Job will clean up the Pods it created.
A simple case is to create one Job object to reliably run one Pod to completion. The Job object will start a new Pod if the…
Services are at the core of modern software architecture. Deploying a series of standard, little (micro-)services instead of massive monoliths provides developers the flexibleness to figure in several languages, technologies, and unharness cadence across the system; leading to higher productivity and speed, particularly for larger groups.
With the adoption of microservices, however, new issues emerge because of the sheer variety of services that exist in a very larger system. issues that had to be resolved once a stone, like security, load equalization, monitoring, and rate-limiting have to be compelled to be handled for every service.
DevOps and Kubernetes Engineer with hands-on experience supporting, automating, and optimising mission critical CI/CD deployments in AWS, Azure and GCP Platform