As mentioned here kubectl
will never support variable substitution.
You can create a helm chart for your app (yaml). It supports yaml template variables (among various other features). So you’ll be able to pass hostPath
parameter based on development or production.