You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the security concerns around sending sensitive properties via command line args we need to launch task apps on Kubernetes using the shell or bootentryPointStyle as a default instead of exec.
This is because exec converts environment properties to command line args.
The text was updated successfully, but these errors were encountered:
Actually, if you change spring-cloud-dataflow/src/kubernetes/server/server-config.yaml, you can. Add entryPointStyle: shell under task.platform.kubernetes.accounts.default like this:
task:
platform:
kubernetes:
accounts:
default:
entryPointStyle: shell
However, bear in mind that as soon as you do that, launching through the dashboard does not act in the documented manner. None of the information you put in the Launch Task screen is sent to the container at all. The way around this is to put them in the definition portion of the Task definition as illustrated here at section 24.3 https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#spring-cloud-dataflow-task
Oddly, this cannot be done in the dashboard. It has some sort of syntax checking which does not allow the definition to be entered in this manner within the DSL box at Task Definition time. So, you either have to use the REST API or the CLI.
At any rate, defining the task in this manner makes the Kubernetes Deployer pass the information along to the executed container as environment variables which have uppercased names and underbars for the periods in the name. (eg. --spring.batch.job.names=ImaLittleTeapot manifests in the container as an environment variable definition of SPRING_BATCH_JOB_NAMES=ImaLittleTeapot.
It is the responsibility of your application within the container to access those variables as required.
Due to the security concerns around sending sensitive properties via command line args we need to launch task apps on Kubernetes using the
shell
orboot
entryPointStyle
as a default instead ofexec
.This is because exec converts environment properties to command line args.
The text was updated successfully, but these errors were encountered: