Skip to main content

Writing Kubernetes-Native Applications

  • Chapter
  • First Online:
Kubernetes Native Development

Abstract

In the last chapter, we learned about the development process on and with Kubernetes and discussed the pros and cons of the different approaches. We started out with development approaches where the developer ignored the fact that the application is developed for Kubernetes and moved toward approaches where they are fully aware of the final deployment and target environment Kubernetes. Now let us move on to the final fourth step “All-in on K8s” of our journey to Kubernetes-native development that we introduced in Chapter 3. While in the first three steps of the journey our developers moved between the two extremes of ignoring or being fully aware of Kubernetes, the same thing can be applied to the application itself. On one hand, we could write applications that do not know anything about the fact that they are running on Kubernetes. On the other hand, we could write applications that can access Kubernetes via its API to retrieve information about its environment, react to changes in the environment, or even manipulate resources in Kubernetes. The two models induce a trade-off between complete independence from Kubernetes and fully leveraging Kubernetes services.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+
from €37.37 /Month
  • Starting from 10 chapters or articles per month
  • Access and download chapters and articles from more than 300k books and 2,500 journals
  • Cancel anytime
View plans

Buy Now

eBook
EUR 17.99
Price includes VAT (Netherlands)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 59.94
Price includes VAT (Netherlands)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Runtime.html

  2. 2.

    https://github.com/fabric8io/kubernetes-client

  3. 3.

    https://quarkus.io/guides/kubernetes-client

  4. 4.

    https://github.com/Apress/Kubernetes-Native-Development

  5. 5.

    https://jakarta.ee/specifications/cdi/2.0/cdi-spec-2.0.html

  6. 6.

    https://kubernetes.io/docs/reference/using-api/#api-versioning

  7. 7.

    www.openapis.org/

  8. 8.

    Bill Wilder, 2012, Cloud Architecture Patterns

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Schmeling, B., Dargatz, M. (2022). Writing Kubernetes-Native Applications. In: Kubernetes Native Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7942-7_4

Download citation

Publish with us

Policies and ethics