Reputation: 3128
In my Kubernetes config.yaml I have:
command: ["sh", "-c", "command1; command2; command3;"]`
a lot of commands can complicate the config file and it will be hard to reat. What is the best approach here? Is it possible to create a script that will have those commands? I will be glad to see an example.
Upvotes: 1
Views: 93
Reputation: 2749
Two ways:
The quick and dirty way .
The command object a an array object in yaml so you can reformat like.
command:
- "sh"
- "-c"
- "command1; command2; command3;"
- "ect"
A little more elegant way:
Upvotes: 1