MENU

Fun & Interesting

Day2 - Free Course || Kubernetes Manifest file Tutorial For Beginners || 20+ k8 files for resume

Praveen Singampalli 3,914 lฦฐแปฃt xem 7 months ago
Video Not Working? Fix It Now

๐Ÿ“Œ๐—ก๐—ฒ๐˜„ ๐—ฃ๐—ฟ๐—ฒ๐—บ๐—ถ๐˜‚๐—บ ๐——๐—ฒ๐˜ƒ๐—ข๐—ฝ๐˜€/๐—ฆ๐—ฅ๐—˜ ๐—ฃ๐—ฟ๐—ถ๐—บ๐—ฒ ๐—•๐—ฎ๐˜๐—ฐ๐—ต๐Ÿญ๐Ÿฌ: 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

Comment