[Kubernetes] Action to scale Pod up/down

Change-Id: I6b2737524955b1f72b6a692559d3942cbb60deb7
Closes-Bug: #1449599
This commit is contained in:
Stan Lagun
2015-10-06 12:47:21 +03:00
committed by Victor Ryzhenkin
parent 6659c87a67
commit 17fea01068
4 changed files with 76 additions and 0 deletions

View File

@@ -494,3 +494,17 @@ Methods:
- $._environment.reporter.report($this, 'Got archive from Kubernetes')
- Return: new(std:File, base64Content => $result.content,
filename => 'application.tar.gz')
scaleRc:
Arguments:
- rcName:
Contract: $.string().notNull()
- newSize:
Contract: $.int().notNull()
Body:
- $template: $resources.yaml('ScaleRc.template').bind(dict(
rcName => $rcName,
newSize => $newSize
))
- $.masterNode.instance.agent.call($template, $resources)