From 97d82470479169e4f98c23ebe5796d6cc6249061 Mon Sep 17 00:00:00 2001 From: Suraj Deshmukh Date: Tue, 10 Jan 2017 12:08:55 +0530 Subject: [PATCH] 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. --- docs/user-guide.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/user-guide.md b/docs/user-guide.md index 8e7607ee..21ed25ad 100644 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -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" ```