updated pods example in user guide

earlier example has mariadb updated with more sensible example
that users can try out, since it also simulates a job like
behavior.
This commit is contained in:
Suraj Deshmukh 2017-01-10 12:08:55 +05:30
parent 2ba88312e1
commit 97d8247047

View File

@ -383,13 +383,14 @@ If you want to create normal pods without controllers you can use `restart` cons
**Note**: controller object could be `deployment` or `replicationcontroller`, etc.
For e.g. `mariadb` service will become pod down here.
For e.g. `pival` service will become pod down here. This container calculated value of `pi`.
```yaml
version: "2"
version: '2'
services:
mariadb:
image: centos/mariadb
restart: "no"
pival:
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restart: "on-failure"
```