summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/doc/scale
blob: e98730911b07edf0d35d5232c5e6a72829f9ebc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# flake8: noqa
# pylint: skip-file

DOCUMENTATION = '''
---
module: oc_scale
short_description: Manage openshift services through the scale parameters
description:
  - Manage openshift services through scaling them.
options:
  state:
    description:
    - State represents whether to scale or list the current replicas
    required: true
    default: present
    choices: ["present", "list"]
    aliases: []
  kubeconfig:
    description:
    - The path for the kubeconfig file to use for authentication
    required: false
    default: /etc/origin/master/admin.kubeconfig
    aliases: []
  debug:
    description:
    - Turn on debug output.
    required: false
    default: False
    aliases: []
  name:
    description:
    - Name of the object that is being queried.
    required: false
    default: None
    aliases: []
  namespace:
    description:
    - The namespace where the object lives.
    required: false
    default: default
    aliases: []
  kind:
    description:
    - The kind of object to scale.
    required: false
    default: None
    choices:
    - rc
    - dc
    aliases: []
author:
- "Kenny Woodson <kwoodson@redhat.com>"
extends_documentation_fragment: []
'''

EXAMPLES = '''
- name: scale down a rc to 0
  oc_scale:
    name: my-replication-controller
    kind: rc
    namespace: openshift-infra
    replicas: 0

- name: scale up a deploymentconfig to 2
  oc_scale:
    name: php
    kind: dc
    namespace: my-php-app
    replicas: 2
'''