Please open Telegram to view this post
VIEW IN TELEGRAM
DevOps & Cloud (AWS, AZURE, GCP) Tech Free Learning
Media is too big
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
𝟏. 𝐒𝐡𝐨𝐫𝐭-𝐥𝐢𝐯𝐞𝐝 𝐂𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫𝐬 :-
These containers are designed to perform a specific task or job and exit.
𝟐. 𝐋𝐨𝐧𝐠-𝐫𝐮𝐧𝐧𝐢𝐧𝐠 𝐂𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫𝐬 :-
These containers are designed to run continuously for extended periods, hosting services or your applications. Examples include web servers, databases, or other services that need to remain operational as long as the application is running.
𝟑. 𝐈𝐧𝐭𝐞𝐫𝐚𝐜𝐭𝐢𝐯𝐞 𝐂𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫𝐬 :-
Containers can also be used interactively for debugging or testing purposes. In this case, the container may run as long as the user keeps the interactive session open.
𝟒. 𝐎𝐫𝐜𝐡𝐞𝐬𝐭𝐫𝐚𝐭𝐞𝐝 𝐂𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫𝐬 :-
𝐊𝐮𝐛𝐞𝐫𝐧𝐞𝐭𝐞𝐬 orchestrated 𝐂𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫𝐬 may be continuously monitored and automatically restarted if they fail or crash.
In these cases, the containers can run for a long time as they are automatically managed by the orchestrator unless interrupted externally.
𝟓. 𝐃𝐚𝐞𝐦𝐨𝐧 𝐂𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫𝐬 :-
The last on this list are 𝐃𝐚𝐞𝐦𝐨𝐧 𝐂𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫𝐬. Docker containers can be run as background daemons, serving a specific purpose and running as long as the system is active or until manually stopped.
htop as a daemon.Please open Telegram to view this post
VIEW IN TELEGRAM
The DevOps 👾 Engineer role is not for freshers.
🔖 Here are some of the tasks that you will be required to do as a DevOps engineer:
⏩ 𝗬𝗼𝘂 𝘄𝗼𝗻’𝘁 𝗯𝗲 𝗮𝘀𝗸𝗲𝗱 𝘁𝗼 𝗰𝗿𝗲𝗮𝘁𝗲 𝗽𝗶𝗽𝗲𝗹𝗶𝗻𝗲𝘀 on the day of joining. Most of the companies already have everything in place.
⏩ . 𝗬𝗼𝘂 𝘄𝗶𝗹𝗹 𝗮𝘀𝗸𝗲𝗱 𝘁𝗼 𝗽𝗲𝗿𝗳𝗼𝗿𝗺 𝗣𝗢𝗖𝘀(𝗣𝗿𝗼𝗼𝗳 𝗼𝗳 𝗖𝗼𝗻𝗰𝗲𝗽𝘁) on a variety of tools, starting from CI/CD to secret management. For instance the difference in build time between Jenkins and GitLab.
⏩ . 𝗕𝘂𝗶𝗹𝗱 𝗰𝘂𝘀𝘁𝗼𝗺 𝗺𝗼𝗻𝗶𝘁𝗼𝗿𝗶𝗻𝗴 𝗺𝗲𝘁𝗿𝗶𝗰𝘀 for better business growth and process efficiency.
⏩ . Work closely with the Cloud and Development team to 𝗶𝗺𝗽𝗿𝗼𝘃𝗲 𝗹𝗮𝘁𝗲𝗻𝗰𝘆, 𝗽𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲 𝗮𝗻𝗱 𝗦𝗟𝗔.
⏩ . Spend crazy time in finding “𝗪𝗵𝗮𝘁 𝗲𝗹𝘀𝗲 𝗰𝗮𝗻 𝘄𝗲 𝗮𝘂𝘁𝗼𝗺𝗮𝘁𝗲”.
⏩ . 𝗪𝗿𝗶𝘁𝗲 𝗰𝘂𝘀𝘁𝗼𝗺 𝗰𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁𝘀 like controllers for Kubernetes.
⏩ . 𝗛𝗲𝗹𝗽 𝘀𝗵𝗶𝗳𝘁 𝘀𝗲𝗰𝘂𝗿𝗶𝘁𝘆 𝗹𝗲𝗳𝘁 by Writing security policies and rules for tools like OPA and Falco.
⏩ . Play the most active role 𝗱𝘂𝗿𝗶𝗻𝗴 𝗿𝗼𝗹𝗹𝗼𝘂𝘁𝘀, 𝗯𝗹𝗶𝗻𝗱𝘀 𝗮𝗻𝗱 𝘂𝗽𝗱𝗮𝘁𝗶𝗼𝗻 of components.
⏩ . Work with APIs, optimize and troubleshoot them.
⏩ . 𝗖𝗼𝗻𝘁𝗿𝗶𝗯𝘂𝘁𝗲 𝗮 𝘁𝗼𝗻 𝘁𝗼 𝘁𝗵𝗲 𝗼𝗿𝗴'𝘀 𝗗𝗼𝗰𝘂𝗺𝗲𝗻𝘁𝗮𝘁𝗶𝗼𝗻.
😎 𝐅𝐨𝐥𝐥𝐨𝐰 @prodevopsguy 𝐟𝐨𝐫 𝐦𝐨𝐫𝐞 𝐬𝐮𝐜𝐡 𝐜𝐨𝐧𝐭𝐞𝐧𝐭 𝐚𝐫𝐨𝐮𝐧𝐝 𝐜𝐥𝐨𝐮𝐝 & 𝐃𝐞𝐯𝐎𝐩𝐬!!! // 𝐉𝐨𝐢𝐧 𝐟𝐨𝐫 𝐃𝐞𝐯𝐎𝐩𝐬 𝐃𝐎𝐂𝐬: @devopsdocs
Please open Telegram to view this post
VIEW IN TELEGRAM
𝑓𝑜𝑟 𝑚𝑜𝑟𝑒 𝑖𝑛𝑓𝑜, 𝑦𝑜𝑢 𝑐𝑎𝑛 𝑐ℎ𝑒𝑐𝑘 𝑡ℎ𝑖𝑠 𝑙𝑖𝑛𝑘:
Please open Telegram to view this post
VIEW IN TELEGRAM
In today's fast-paced world of software development and deployment, Docker has emerged as a game-changer, revolutionizing the way we build, ship, and run applications.
Docker is an open-source platform that simplifies the process of building, shipping, and running applications within containers. It provides a lightweight, portable, and scalable environment for deploying applications across different computing environments, from development to production. With Docker, developers can package their applications and all their dependencies into a single unit called a container, ensuring consistency and reproducibility across various deployment targets.
A container is a lightweight, standalone, and executable package that contains everything needed to run a piece of software, including the application code, runtime, system tools, libraries, and settings. Containers leverage operating system-level virtualization to isolate the application environment from the underlying infrastructure, making them highly portable and efficient. They provide a consistent runtime environment across different platforms, enabling developers to build once and run anywhere.
An image is a read-only template used to create containers. It serves as a blueprint for defining the filesystem and configuration of a containerized application. Docker images encapsulate all the necessary components, including the operating system, runtime, libraries, dependencies, and application code, in a standardized format. Images can be shared, versioned, and distributed via Docker registries, making it easy to collaborate and deploy applications across diverse environments.
Please open Telegram to view this post
VIEW IN TELEGRAM
𝘾𝙧𝙮𝙞𝙣𝙜 𝙞𝙣 𝙔𝘼𝙈𝙇 🥲
➡️ 𝟭𝟭 𝘄𝗮𝘆𝘀 𝘁𝗼 𝗲𝗳𝗳𝗲𝗰𝘁𝗶𝘃𝗲𝗹𝘆 𝗗𝗲𝗯𝘂𝗴 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 𝗶𝘀𝘀𝘂𝗲𝘀:
1.🛠 Utilize kubectl commands for quick diagnostics.
2.🖥 Leverage the Kubernetes Dashboard for visual debugging.
3.🚀 Use ephemeral containers for troubleshooting without modifying pod state.
4.📜 Explore logs with stern for efficient log monitoring.
5.🚪 Use kubectl port-forward for direct access to services.
6.⚙️ Implement probes for automated health checks.
7.🗓 Analyze cluster events with kubectl get events.
8.🌐 Network troubleshooting with netshoot.
9.📊 Performance monitoring with Prometheus and Grafana.
10.💻 Inspect container filesystems with kubectl exec.
11.📈 Analyze resource usage with Metrics Server.
Share this to help other DevOps Engineers ♻️🤝
✔️ 𝐅𝐨𝐥𝐥𝐨𝐰 @prodevopsguy 𝐟𝐨𝐫 𝐦𝐨𝐫𝐞 𝐬𝐮𝐜𝐡 𝐜𝐨𝐧𝐭𝐞𝐧𝐭 𝐚𝐫𝐨𝐮𝐧𝐝 𝐜𝐥𝐨𝐮𝐝 & 𝐃𝐞𝐯𝐎𝐩𝐬!!! // 𝐉𝐨𝐢𝐧 𝐟𝐨𝐫 𝐃𝐞𝐯𝐎𝐩𝐬 𝐃𝐎𝐂𝐬: @devopsdocs
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
Share this to help other DevOps Engineers ♻️
Please open Telegram to view this post
VIEW IN TELEGRAM
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Please open Telegram to view this post
VIEW IN TELEGRAM
CICD 👾 with Jenkins Multibranch pipeline ⚙️
➡️ What is Jenkins Multibranch pipeline ❓
According to official documentation, multibranch pipeline job type lets you define a job where from a single git repository Jenkins will detect multiple branches and create nested jobs when it finds a Jenkinsfile
𝑓𝑜𝑟 𝑚𝑜𝑟𝑒 𝑖𝑛𝑓𝑜, 𝑦𝑜𝑢 𝑐𝑎𝑛 𝑐ℎ𝑒𝑐𝑘 𝑡ℎ𝑖𝑠 𝑙𝑖𝑛𝑘:
🖥 https://prodevopsguy.site/cicd-jenkins-multibranch-pipeline
😎 𝐅𝐨𝐥𝐥𝐨𝐰 @prodevopsguy 𝐟𝐨𝐫 𝐦𝐨𝐫𝐞 𝐬𝐮𝐜𝐡 𝐜𝐨𝐧𝐭𝐞𝐧𝐭 𝐚𝐫𝐨𝐮𝐧𝐝 𝐜𝐥𝐨𝐮𝐝 & 𝐃𝐞𝐯𝐎𝐩𝐬!!! // 𝐉𝐨𝐢𝐧 𝐟𝐨𝐫 𝐃𝐞𝐯𝐎𝐩𝐬 𝐃𝐎𝐂𝐬: @devopsdocs
According to official documentation, multibranch pipeline job type lets you define a job where from a single git repository Jenkins will detect multiple branches and create nested jobs when it finds a Jenkinsfile
𝑓𝑜𝑟 𝑚𝑜𝑟𝑒 𝑖𝑛𝑓𝑜, 𝑦𝑜𝑢 𝑐𝑎𝑛 𝑐ℎ𝑒𝑐𝑘 𝑡ℎ𝑖𝑠 𝑙𝑖𝑛𝑘:
Please open Telegram to view this post
VIEW IN TELEGRAM
𝑓𝑜𝑟 𝑚𝑜𝑟𝑒 𝑖𝑛𝑓𝑜, 𝑦𝑜𝑢 𝑐𝑎𝑛 𝑐ℎ𝑒𝑐𝑘 𝑡ℎ𝑖𝑠 𝑙𝑖𝑛𝑘:
Please open Telegram to view this post
VIEW IN TELEGRAM
As a DevOps Engineer, you must be aware of 𝐃𝐨𝐜𝐤𝐞𝐫𝐟𝐢𝐥𝐞 𝐁𝐞𝐬𝐭 𝐏𝐫𝐚𝐜𝐭𝐢𝐜𝐞𝐬:
🔍 Use only and only official and verified images as base image.
🔍 Use light weight docker images for base image like alpine linux image distribution.
🔍 Use docker image version instead of using latest version.
🔍 Install only required packages and softwares into Docker Image.
🔍 Do not have multiple layers of RUN instructions in a Dockerfile, instead have single RUN instruction to install all necessary packages into a docker image using && operator.
🔍 When Dockerfile contains too many layers, try to use multi stage docker file.
🔍 Use .dockerignore file to exclude unnecessary files and directories from docker image in order to reduce docker image size.
🔍 Do not use root user to start docker container, use non root user with least privileges.
🔍 Once docker image is built, make sure docker image is scanned before pushing to Docker Registry.
✔️ 𝐅𝐨𝐥𝐥𝐨𝐰 @prodevopsguy 𝐟𝐨𝐫 𝐦𝐨𝐫𝐞 𝐬𝐮𝐜𝐡 𝐜𝐨𝐧𝐭𝐞𝐧𝐭 𝐚𝐫𝐨𝐮𝐧𝐝 𝐜𝐥𝐨𝐮𝐝 & 𝐃𝐞𝐯𝐎𝐩𝐬!!! // 𝐉𝐨𝐢𝐧 𝐟𝐨𝐫 𝐃𝐞𝐯𝐎𝐩𝐬 𝐃𝐎𝐂𝐬: @devopsdocs
Please open Telegram to view this post
VIEW IN TELEGRAM
Immediate joiners preferred
Please open Telegram to view this post
VIEW IN TELEGRAM
Azure DevOps is a suite of services you can implement end-to-end DevOps in your organization. It includes services such as Azure Repos, Boards, Wiki, Build and Release pipelines, Test plans, Artifacts, etc.,
𝑓𝑜𝑟 𝑚𝑜𝑟𝑒 𝑖𝑛𝑓𝑜, 𝑦𝑜𝑢 𝑐𝑎𝑛 𝑐ℎ𝑒𝑐𝑘 𝑡ℎ𝑖𝑠 𝑙𝑖𝑛𝑘:
Please open Telegram to view this post
VIEW IN TELEGRAM
𝐓𝐨𝐨𝐥 𝐒𝐭𝐚𝐜𝐤 𝐟𝐨𝐫 𝐩𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐨𝐧 𝐊𝐮𝐛𝐞𝐫𝐧𝐞𝐭𝐞𝐬 𝐄𝐧𝐯𝐢𝐫𝐨𝐧𝐦𝐞𝐧𝐭 ⚠️
⏩ 𝐒𝐞𝐜𝐮𝐫𝐢𝐭𝐲: In today's cyber landscape, security takes center stage. Leverage the power of Aqua Security and Sysdig Secure, robust container security tools, to fortify your clusters and safeguard workloads.
⏩ 𝐍𝐞𝐭𝐰𝐨𝐫𝐤𝐢𝐧𝐠: Smooth network connectivity is the lifeblood of containerized apps. Employ Kubernetes-native solutions like Calico and Cilium to effortlessly manage network policies, ensuring seamless communication among your applications.
⏩ 𝐂𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫 𝐑𝐮𝐧𝐭𝐢𝐦𝐞: At the core of Kubernetes lies the container runtime. Docker and other container solutions reign supreme, simplifying the management of container lifecycles and runtime environments.
⏩ 𝐂𝐥𝐮𝐬𝐭𝐞𝐫 𝐌𝐚𝐧𝐚𝐠𝐞𝐦𝐞𝐧𝐭: Streamline cluster management for scalable applications with the help of tools like Kops and Rancher. They take the complexity out of cluster provisioning and upkeep.
⏩ 𝐌𝐨𝐧𝐢𝐭𝐨𝐫𝐢𝐧𝐠 𝐚𝐧𝐝 𝐎𝐛𝐬𝐞𝐫𝐯𝐚𝐛𝐢𝐥𝐢𝐭𝐲: Maintain a vigilant watch over your Kubernetes environment using Prometheus for monitoring and Grafana for intuitive visualization. Remember to establish centralized logging through Fluentd or the Elastic Stack.
⏩ 𝐈𝐧𝐟𝐫𝐚𝐬𝐭𝐫𝐮𝐜𝐭𝐮𝐫𝐞 𝐎𝐫𝐜𝐡𝐞𝐬𝐭𝐫𝐚𝐭𝐢𝐨𝐧: To automate infrastructure provisioning and scaling, rely on indispensable tools like Terraform and Helm for efficient package management. They empower you to define and manage your infrastructure as code.
When combined, these tools create a robust Kubernetes ecosystem that empowers you to securely and efficiently deploy, manage, and scale containerized applications.💡
✉️ 𝐅𝐨𝐥𝐥𝐨𝐰 @prodevopsguy 𝐟𝐨𝐫 𝐦𝐨𝐫𝐞 𝐬𝐮𝐜𝐡 𝐜𝐨𝐧𝐭𝐞𝐧𝐭 𝐚𝐫𝐨𝐮𝐧𝐝 𝐜𝐥𝐨𝐮𝐝 & 𝐃𝐞𝐯𝐎𝐩𝐬!!! // 𝐉𝐨𝐢𝐧 𝐟𝐨𝐫 𝐃𝐞𝐯𝐎𝐩𝐬 𝐃𝐎𝐂𝐬: @devopsdocs
When combined, these tools create a robust Kubernetes ecosystem that empowers you to securely and efficiently deploy, manage, and scale containerized applications.
Please open Telegram to view this post
VIEW IN TELEGRAM
1714365906488.gif
472.2 KB
Here is how.
The SlimToolkit can reduce the image size by up to 30% of the image size
The image size may be reduced even more for applications run in compiled languages such as C, C++, Java, etc.
Our detailed blog by Aswin dives into optimizing Python and Java Docker images with practical examples.
Please open Telegram to view this post
VIEW IN TELEGRAM
www.prodevopsguy.site
☸️ Deploying an Application on Kubernetes: A Complete Guide! ☸
Deploying an Application on Kubernetes - A Complete Guide!
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1708757232781.gif
285.8 KB
The below illustration shows some common container commands and their syntax 👇
1.
docker run -it --name nginx nginx
2.
docker start nginx
3.
docker restart nginx
4.
docker pause nginx
5.
docker unpause nginx
6.
docker stop nginx
7.
docker kill nginx
8.
docker ps
9.
docker exec -it nginx /bin/bash
10.
docker attach nginx
11.
docker logs nginx
12.
docker rename old-name new-name
13.
docker inspect nginx
14.
docker cp nginx:/container-path/file.txt /local-path
15.
docker rm nginx
These container commands are essential for managing containerized applications, whether for development, testing, or production deployment, as they enable efficient control and manipulation of container instances.
Please open Telegram to view this post
VIEW IN TELEGRAM