© The Author(s), under exclusive license to APress Media, LLC , part of Springer Nature 2021
P. MartinKuberneteshttps://doi.org/10.1007/978-1-4842-6494-2_6

6. Configuring Applications

Philippe Martin1  
(1)
Gif-sur-Yvette, France
 
An application can be configured in different ways:
  • By passing arguments to the command

  • By defining environment variables

  • Using configuration files

Arguments to the Command

We have seen in Chapter 5, section “Container Specs,” that we can define the arguments of the command with the Args field of the Container spec.

It is not possible to define the arguments of the command imperatively by using the kubectl command run or create.

Depending on the definition of the image, it is possible you have to also specify the Command value ...

Get Kubernetes: Preparing for the CKA and CKAD Certifications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.