If I run the kubectl create -f deployment.yaml command with
the following deployment.yaml file, everything succeeds.
apiVersion: v1
kind: Pod
metadata:
name: my_app
labels:
app: my_app
spec:
containers:
- name: my_app
image: docker:5000/path_to_my_custom_image
args: ["my_special_argument"]
However, now I want to have a custom "my_special_argument" as follows
apiVersion: v1
kind: Pod
metadata:
name: my_app
labels:
app: my_app
spec:
containers:
- name: my_app
image: docker:5000/path_to_my_custom_image
args: ["$(ARG)"]
and I want to somehow set the value of $ARG$ when I execute the kubectl create -f deployment.yaml command. How to do that?
I am looking for something like:
kubectl create -f deployment.yaml --ARG=new_arg
Can such command be executed?