Reader small image

You're reading from  Kubernetes for Developers

Product typeBook
Published inApr 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788834759
Edition1st Edition
Languages
Right arrow
Author (1)
Joseph Heck
Joseph Heck
author image
Joseph Heck

Joseph Heck has broad development and management experience across start-ups and large companies. He has architected, developed, and deployed a wide variety of solutions, ranging from mobile and desktop applications to cloud-based distributed systems. He builds and directs teams and mentors individuals to improve the way they build, validate, deploy, and run software. He also works extensively with and in open source, collaborating across many projects, including Kubernetes.
Read more about Joseph Heck

Right arrow

Practical notes for writing software to run in a container


To use Kubernetes in your development process, one of the foundational requirements is running your code in a container. As you've seen, this adds a few steps to your development process. It also places a few more constraints around how you structure your code and interact with it, primarily so you can take advantage of the constraints to let Kubernetes do the work of running the processes, connecting them together, and coordinating any output. This is very different from many developers' habits of running one or more processes together, even with additional services needed for your application – such as databases or caches—on your local development machine.

This section provides some tips and suggestions on how to work with containers more effectively.

Getting options for your executable code

Aside from the ENTRYPOINT and CMD defined when you create your container, a container image can also define environment variables, usually via...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Kubernetes for Developers
Published in: Apr 2018Publisher: PacktISBN-13: 9781788834759

Author (1)

author image
Joseph Heck

Joseph Heck has broad development and management experience across start-ups and large companies. He has architected, developed, and deployed a wide variety of solutions, ranging from mobile and desktop applications to cloud-based distributed systems. He builds and directs teams and mentors individuals to improve the way they build, validate, deploy, and run software. He also works extensively with and in open source, collaborating across many projects, including Kubernetes.
Read more about Joseph Heck