[Kubernetes] Action to scale Pod up/down
Change-Id: I6b2737524955b1f72b6a692559d3942cbb60deb7 Closes-Bug: #1449599
This commit is contained in:

committed by
Victor Ryzhenkin

parent
6659c87a67
commit
17fea01068
@@ -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)
|
||||
|
Reference in New Issue
Block a user