In Kubernetes, a HorizontalPodAutoscaler(or HPA) automatically updates a workload resource (such as a Deployment or StatefulSet), with more pods. Scaling basics Horizontal scaling means run more processing units, where Vertical scaling means making a single processing unit more powerfull. (read more here ) HPA scales …
Read MoreWhen you specify a Pod, you can optionally specify how much of each resource a container needs. Requests and limits Generally, you have these tools to control the resources that a pod will use: Resource Requests Resource Limits (which we'll demonstrate in another post) Resource Requests are evaluated before a pod is …
Read Morekubernetes cluster metrics When you run a pod, some load is laid on the node that runs it. The pod consume some of the memory and cpu power of that node. We'll use a tool called metrics-server to inspect resources. For minikube, the resource-server is available as an addon . Here's how to install it (my profile is …
Read MoreMotivation In many cases we want to keep configuration data about our applications. Examples: lodations of servers/services (URLs, domain names, IP addresses) directory/file locations on volumes.. credentials: user names, passwords, toekens etc. The idea is to decouple environment-specific configuration from your …
Read MoreJSONPath is a query language for querying values in JSON strings. It can help you navigate complex JSON values to retreive a specific value, or set of values. JSON in kubernetes You can instruct kubernetes to modify the output to json: 1$> kubectl get pods 2NAME READY STATUS RESTARTS AGE 3my-pod 1/1 Running 0 12s 4$> …
Read MoreMotivation -Service deployments and batch processing pipelines are often multi-dimensional entities. For example, you may have multiple micro-services per tier. Labels Labels are key/value pairs that are attached to objects, such as pods or deployments Labels can be used to organize and to select subsets of objects. …
Read MoreThe main power of kubernetes is running things at scale. Deployments are meant to run multiple pods, on multiple nodes. About Deployments A kuberneteis deployment is a kubernetes object that is meant to define and run pods at scale. It contains another kubernetes object called ReplicaSet which is responsible on …
Read MoreA pod is a group (sometimes of whales) of containers. Does it mean that kubernetes is asking us to put multiple containers in a pod? What Multiple Containers The k8s Pods guide tells us that: "A Pod models an application-specific "logical host": it contains one or more application containers which are relatively …
Read Morepods are the basic computing unit of kubernetes. Pods Facts A Pod (as in a pod of whales or pea pod) is a group of one or more containers Pod containers share storage and network resources ..so same IP address for all containers in the pod can share volumes, but each container have its own files All containers (and …
Read More