Markdown is a lightweight markup language for creating formatted text using a plain-text editor. John Gruber and Aaron Swartz created Markdown in 2004 as a markup language that is appealing to human readers in its source code form. Markdown is widely used in blogging, instant messaging, online forums, collaborative software…
Docker Hub can automatically build images from source code in an external repository and automatically push the built image to your Docker repositories.
Role-based access control (RBAC) is a method of regulating access to computer or network resources based on the roles of individual users within your organisation.
I am going to practice RBAC on k8s with Cluster Role…
Inter-pod affinity and anti-affinity allow you to constrain which nodes your pod is eligible to be scheduled based on labels on pods that are already running on the node rather than based on labels on nodes.
The Horizontal Pod Autoscaler automatically scales the number of Pods in a replication controller, deployment, replica set or stateful set based on observed CPU utilisation (or, with custom metrics support, on some other application-provided metrics).
The Horizontal Pod Autoscaler is implemented as a Kubernetes API resource and a controller. The…
You describe a desired state in a Deployment, and the Deployment Controller changes the actual state to the desired state at a controlled rate. You can define Deployments to create new ReplicaSets, or to remove existing Deployments and adopt all their resources with new Deployments. — k8s official doc
Dynamic volume provisioning allows storage volumes to be created on-demand. — kubernetes docs
The implementation of dynamic volume provisioning is based on the API object
StorageClass from the API group
Today, I am going to launch static provisioning Wordpress / Mysql configuration on k8s
NFS Storage(Static Provision)
$ sudo apt update
$ sudo apt install nfs-kernel-server
$ vi /etc/exports
/nfs-v *(rw,sync,no_subtree_check)$ sudo mkdir /nfs-v
$ sudo chmod -R 777 /nfs-v
Today, I am going to practice launching a web application using Persistent Volumes, Persistent Volume Claim, Network File System and ReplicaSet with Kubernetes.
Firstly, install NFS, create a nfs…