Option 1:
args: [“-lines 56 -F”]
Option 2:
args: [“-lines”, “56”, “-F”]
Option 1:
args: [“-lines 56 -F”]
Option 2:
args: [“-lines”, “56”, “-F”]
I don’t know what command they have put under the command section. If it looks like this then you can specify as follows:-
command: [ "/bin/bash", "-c", "COMMAND"]
args: [ "-lines 56 -F" ]
Hi, can I specify the container args while creating the pod like
k run test --image= – -lines 56 -F.
Is it correct ?
I don’t think it will work. We need to know first what command we are going to add.
You could try in the lab and try the different-different scenarios.
You can override the whole command (including args) or the arguments only with kubectl run
To override everything
k run test --image __ --command -- command and optional arguments
To override args only (they will be appended to whatever is present for command:
)
k run test --image __ -- arguments
It is down to whether or not you include --command