Saturday, December 9, 2023
Kiratas
  • Home
  • World
  • Lifestyle

    Trending Tags

    • Pandemic
  • Business
  • Entertainment
  • Sports
No Result
View All Result
  • Home
  • World
  • Lifestyle

    Trending Tags

    • Pandemic
  • Business
  • Entertainment
  • Sports
No Result
View All Result
Kiratas
No Result
View All Result
Home World

Sustainable software delivery in Kubernetes

Eliza Houghton by Eliza Houghton
November 21, 2023
in World
0
Sustainable software delivery in Kubernetes
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter

Sustainability in software development is becoming increasingly important – especially in the context of application delivery in the cloud. Rising energy prices are motivating more and more companies to think about more sustainable software architecture and to monitor their computing-related CO2 emissions in more detail.

Advertisement

In the cloud-native environment, there are more and more tools and methods to, for example, improve the sustainability of software through demand-oriented, needs-based scaling. The article uses a concrete case study to show how developers can use the open source software Knative to convert a containerized application in Kubernetes into a dynamically scalable serverless service, which even switches off completely in times of lack of demand.

Scale as needed for more sustainability

Knative is based on Kubernetes, which has established itself as the backbone of modern containerized application landscapes. Kubernetes offers many ways to automate the deployment, scaling, and management of containerized applications. However, despite its flexibility, Kubernetes lacks the ability to deploy serverless applications. Among other things, the Green Software Foundation considers the underlying deployment pattern to be sustainable, in which applications can be scaled based on current demand and, if necessary, switched off completely.

When migrating a simple sample application from a standard Kubernetes deployment to a Knative service, the following quality criteria must be taken into account:

The migration should require as few adjustments to the source code as possible. This is the only way to ensure that larger applications can be easily migrated without incurring excessive costs for restructuring the application landscape. The practice for logging, monitoring and tracing established in the existing application environment should continue to be usable. Therefore, to enable easy migration, it is necessary to ensure the compatibility of Knative with the existing tools. The example outlined below is therefore based on the widely used monitoring software Prometheus. Existing endpoints of the example application should be available with Knative under the same routes after the migration. In larger application landscapes, routes are often static addresses of the services. After a migration, if a service is suddenly available at a different URL, this can cause problems, especially if communication is not decoupled through an API gateway or service registry. The sample application load pattern must reflect extended periods of time where the service is not accessed, so there is no access by users. However, scaling down the application to zero replicas results in a significant gain in resources.

The example application to be migrated consists of a simple, stateless Kubernetes deployment that exposes a REST API via an ingress. The Prometheus operator is intended to collect the metrics for monitoring the application via the Kubernetes Custom Resource ServiceMonitor – as Figure 1 illustrates.

Initial situation for the example application to be migrated in the Kubernetes cluster (Fig. 1).

Initial situation for the example application to be migrated in the Kubernetes cluster (Fig. 1).

Knative: Serverless services in Kubernetes

The open source project Knative aims to run and manage serverless workloads in Kubernetes. It does this by providing auto-scaling capabilities, including the ability to scale down applications to zero pods to avoid pod idleness. Even though the savings per application may be small, the effect adds up across thousands of pods and a multitude of applications, especially in large clusters. It is important to note that Knative can only handle stateless applications that communicate exclusively via HTTP.

svg%3E

The articles in the new special issue iX Developer “Cloud Native” show how observability, platform engineering and other new approaches help developers work more productively across the entire software development lifecycle.

To create a serverless runtime environment within a Kubernetes cluster, several components of Knative Serving must work together. This particularly includes service, route and revision:

Service: A Knative service defines a serverless application and therefore should not be confused with a service in Kubernetes. When you create a Knative service, a route and configuration are automatically created. Route: This determines how requests are routed to the different revisions of an application. For example, you can specify that 90 percent of requests should flow to the current version of the application and the remaining 10 percent to a new version. Revision: Every time there is a change to the Knative service, Knative creates a new revision. Each revision represents a snapshot of the code and associated configuration. To the home page
#Sustainable #software #delivery #Kubernetes

Tags: Cloud ComputingContainerizationdeliveryKnativeKubernetesOpen SourcesoftwareSoftware developmentsustainabilitySustainableVirtualization
Previous Post

Hamas assures that it is “close to reaching a truce agreement” with Israel

Next Post

Don’t even think about heating this in the microwave, it is very serious and can be a danger to your health.

Eliza Houghton

Eliza Houghton

Related Posts

Delfina Gómez, on the Texcaltitlán massacre: “You are not alone, we are with you”
World

Delfina Gómez, on the Texcaltitlán massacre: “You are not alone, we are with you”

by Eliza Houghton
December 9, 2023
Five Gipuzkoan coaches shake up Europe
World

Five Gipuzkoan coaches shake up Europe

by Eliza Houghton
December 9, 2023
Barcelona lineup against Girona: Xavi will repeat eleven against Girona
World

Barcelona lineup against Girona: Xavi will repeat eleven against Girona

by Eliza Houghton
December 9, 2023
40 years of democracy: more than ever
World

40 years of democracy: more than ever

by Eliza Houghton
December 9, 2023
The illustration draws a new youth for the classics
World

The illustration draws a new youth for the classics

by Eliza Houghton
December 9, 2023
Next Post
Don’t even think about heating this in the microwave, it is very serious and can be a danger to your health.

Don't even think about heating this in the microwave, it is very serious and can be a danger to your health.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

Premium Content

Ortega and Murillo accuse the Jesuit university of terrorism and order the seizure of all their assets

Ortega and Murillo accuse the Jesuit university of terrorism and order the seizure of all their assets

August 16, 2023
Kärcher RCV5 in the test: Really good vacuum robot with precise 3D object recognition

Kärcher RCV5 in the test: Really good vacuum robot with precise 3D object recognition

October 22, 2023
It will be news: The course starts in the haurreskolak, Education Law and autumn ETB programming

It will be news: The course starts in the haurreskolak, Education Law and autumn ETB programming

September 6, 2023

Browse by Category

  • Science
  • Sports
  • World

Browse by Tags

America amnesty Apple Artificial Intelligence attack attacks China Court data due Economy Europe Gaza Gaza Strip Germany Google government Hamas health investiture iOS iPhone Israel law live Madrid Microsoft million news people Politics PSOE Russia Security Spain Sports Sánchez Ukraine United States Updates Vulnerabilities war workshop world years
Kiratas

Latest News from World, Health, Politics, Sports, Business, Education, Technology, Arts and Latin America, the Middle East, South Asia.

Categories

  • Science
  • Sports
  • World

Browse by Tag

America amnesty Apple Artificial Intelligence attack attacks China Court data due Economy Europe Gaza Gaza Strip Germany Google government Hamas health investiture iOS iPhone Israel law live Madrid Microsoft million news people Politics PSOE Russia Security Spain Sports Sánchez Ukraine United States Updates Vulnerabilities war workshop world years

Recent Posts

  • Delfina Gómez, on the Texcaltitlán massacre: “You are not alone, we are with you”
  • Five Gipuzkoan coaches shake up Europe
  • Barcelona lineup against Girona: Xavi will repeat eleven against Girona
  • About Us
  • Home
  • Privacy Policy
  • Terms and Conditions

© Aroged 2023. All Rights Reserved.

No Result
View All Result
  • Home
  • Landing Page
  • Buy JNews
  • Support Forum
  • Contact Us

© Aroged 2023. All Rights Reserved.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.