Unit no 5-1
Unit no 5-1
Here are a few key points that define elastic resources in cloud computing:
3. Cost Efficiency: Elasticity can lead to cost savings because you only pay for
the resources you use when you use them. When demand decreases, resources
are automatically scaled down, reducing costs. When demand increases,
resources are scaled up to meet the demand.
Define Containers:-
Workload portability
Docker
Docker is a software platform that allows you to build, test, and deploy
applications quickly.
Docker packages software into standardized units called containers that
have everything the software needs to run including libraries, system
tools, code, and runtime.
Docker,you can quickly deploy and scale applications into any
environment and know your code will run.Running Docker on AWS
provides developers and admins a highly reliable, low-cost way to build,
ship, and run distributed applications at any scale.
Docker architecture:-
Docker uses a client-server architecture. The Docker client talks to the
Docker daemon, which does the heavy lifting of building, running, and
distributing your Docker containers.
The Docker client and daemon can run on the same system, or you can
connect a Docker client to a remote Docker daemon.
The Docker client and daemon communicate using a REST API, over
UNIX sockets or a network interface. Another Docker client is Docker
Compose, that lets you work with applications consisting of a set of
containers.
The Docker daemon
The Docker daemon (dockerd) listens for Docker API requests and manages
Docker objects such as images, containers, networks, and volumes. A daemon
can also communicate with other daemons to manage Docker services.
The Docker client (docker) is the primary way that many Docker users interact
with Docker. When you use commands such as docker run, the client sends
these commands to dockerd, which carries them out. The docker command uses
the Docker API. The Docker client can communicate with more than one
daemon.
Docker Desktop
Docker registries
A Docker registry stores Docker images. Docker Hub is a public registry that
anyone can use, and Docker looks for images on Docker Hub by default. You
can even run your own private registry.
When you use the docker pull or docker run commands, Docker pulls the
required images from your configured registry. When you use the docker
push command, Docker pushes your image to your configured registry.
Docker objects
When you use Docker, you are creating and using images, containers, networks,
volumes, plugins, and other objects. This section is a brief overview of some of
those objects.
Images
Containers
Docker Uses:-
Docker is a versatile platform for containerization that has a wide range of uses
across different domains and industries.
Introduction to DevOps:
DevOps is a set of practices, cultural philosophies, and tools that
aim to improve and streamline the collaboration between software
development (Dev) and IT operations (Ops) teams.
The primary goal of DevOps is to shorten the software
development life cycle, enable more frequent software releases,
and improve the quality and reliability of software applications.
DevOps is a set of principles, practices, and tools that bridge the
gap between software development and IT operations, with the
ultimate goal of delivering software faster, with higher quality, and
in a more collaborative and efficient manner.
1. Origin of DevOps:
3. Benefits of DevOps:
- Faster Release Cycles: DevOps shortens the time between code development
and deployment, allowing organizations to release new features and updates
more frequently.
- Improved Quality: By automating testing and deployment, DevOps reduces
the likelihood of human errors and improves the overall quality of software.
4. DevOps Tools:
Most cloud providers offer private image registry services: Google offers
the Google Container Registry, AWS provides Amazon Elastic Container
Registry (ECR), and Microsoft has the Azure Container Registry.
Use Cases:
2. Multi-Cloud Kubernetes:
Use Cases:
Flexibility: You can choose the best environment for each workload—on-
prem for compliance-sensitive tasks, and the cloud for elasticity.
Resilience: Multi-cloud architectures offer superior redundancy,
minimizing the risk of downtime due to cloud-specific outages.
Cost Efficiency: Optimize your use of cloud resources based on cost,
performance, or geographical factors.
The Kubernetes server runs locally within your Docker instance, is not
configurable, and is a single-node cluster. It runs within a Docker container on
your local system, and is only for local testing.
Note
Docker Desktop does not upgrade your Kubernetes cluster automatically after a
new update. To upgrade your Kubernetes cluster to the latest version,
select Reset Kubernetes Cluster.
Tip