๐๐ก๐ฒ๐ ๐ฃ๐ฟ๐ฒ๐บ๐ถ๐๐บ ๐๐ฒ๐๐ข๐ฝ๐/๐ฆ๐ฅ๐ ๐ฃ๐ฟ๐ถ๐บ๐ฒ ๐๐ฎ๐๐ฐ๐ต๐ญ๐ฌ: https://heydevops.in/batch10 [ 20 Registrations only ๐]
๐๐๐๐ซ๐ฅ๐ฒ ๐๐ข๐ซ๐ ๐๐๐๐๐ซ ๐๐จ๐๐ "HEYDEVOPS" [๐๐% ๐๐๐๐๐๐๐๐ ๐ฏ๐๐ฅ๐ข๐ ๐๐จ๐ซ ๐๐ข๐ซ๐ฌ๐ญ ๐๐๐ฐ ๐ซ๐๐ ๐ข๐ฌ๐ญ๐ซ๐๐ญ๐ข๐จ๐ง๐ฌ]
๐๐๐จ๐ข๐ง ๐ญ๐ก๐ ๐ญ๐๐ฅ๐๐ ๐ซ๐๐ฆ ๐ ๐ซ๐จ๐ฎ๐ฉ - https://t.me/+YztI7zxOTbkyMWI1
Kubernetes manifests are YAML or JSON files that define the desired state of a resource or a group of resources in a Kubernetes cluster. They are used to deploy applications, services, and other objects into the cluster, and to manage their configuration and lifecycle.
Key components of a Kubernetes manifest:
apiVersion: Specifies the API version of the Kubernetes API that the manifest is compatible with.
kind: Specifies the type of Kubernetes resource that the manifest is defining (e.g., Deployment, Service, Pod).
metadata: Contains metadata about the resource, such as its name, namespace, labels, and annotations.
spec: Defines the desired state of the resource.
Example of a Deployment manifest:
YAML
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app
image: my-image:latest
ports:
- containerPort: 8080
This manifest defines a Deployment with 3 replicas of a Pod running the my-app container. The container is specified to use the my-image:latest image and to expose port 8080.
Common Kubernetes resources:
Pod: The smallest unit of work in Kubernetes, representing a single instance of a containerized application.
Deployment: A declarative API resource that manages a set of Pods.
Service: Abstracts a group of Pods and provides a stable network endpoint for them.
Ingress: A controller that exposes HTTP(S) traffic to services in a Kubernetes cluster.
ConfigMap: Stores configuration data as key-value pairs.
Secret: Stores sensitive data, such as passwords and API keys.
PersistentVolumeClaim: Requests a persistent storage volume for a Pod.
Kubernetes manifests can be applied to a cluster using the kubectl apply command. This command creates or updates resources based on the desired state defined in the manifest
Connect with me on:
*Linkedin - https://www.linkedin.com/in/praveen-singampalli
*Insta - https://www.instagram.com/singam4devops
For Collaboration please reach out here - singamcollab@gmail.com