concept argument in category kubernetes

appears as: argument, rguments, arguments, rgument, n argument, The arguments
Kubernetes in Action

This is an excerpt from Manning's book Kubernetes in Action.

7.2.1. Defining the command and arguments in Docker

The first thing I need to explain is that the whole command that gets executed in the container is composed of two parts: the command and the arguments.

Listing 7.1. Fortune script with interval configurable through argument: fortune-args/fortuneloop.sh
#!/bin/bash
trap "exit" SIGINT
INTERVAL=$1
echo Configured to generate new fortune every $INTERVAL seconds
mkdir -p /var/htdocs
while :
do
  echo $(date) Writing fortune to /var/htdocs/index.html
  /usr/games/fortune > /var/htdocs/index.html
  sleep $INTERVAL
done


!@%STYLE%@!
{"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":2,\"ch\":0},{\"line\":2,\"ch\":11}],[{\"line\":3,\"ch\":0},{\"line\":3,\"ch\":63}],[{\"line\":9,\"ch\":2},{\"line\":9,\"ch\":17}]]"}
!@%STYLE%@!