The reason this is occurring, is due to you utilizing a Pod definition. The 
purpose of the pod is to spin up one pod and do nothing else.

Checkout the documentation on creating a replication 
controller<https://docs.openshift.org/latest/architecture/core_concepts/deployments.html#replication-controllers>.
 Creating an Replication Controller, instead of a Pod, will allow you to 
perform the scale operation and maintain pods through a lifecycle.


--
John Skarbek


On September 19, 2016 at 15:22:49, Ravi Kapoor 
(ravikapoor...@gmail.com<mailto:ravikapoor...@gmail.com>) wrote:

Once more, now with JSON

{
    "kind": "List",
    "apiVersion": "v1beta3",
    "metadata": {},
    "items": [
        {
            "apiVersion": "v1",
            "kind": "Pod",
            "metadata": {
                "labels": {
                    "name": "node-test"
                },
                "name": "node-test"
            },
            "spec": {
                "containers": [
                    {
                        "image": "node:4.4.7",
                        "imagePullPolicy": "IfNotPresent",
                        "name": "node-test",
                        "command": [
                            "node"
                        ],
                        "args": [
                            "/usr/src/app/server.js"
                        ],
                        "ports": [
                            {
                                "containerPort": 8080,
                                "protocol": "TCP"
                            }
                        ],
                        "volumeMounts": [
                            {
                                "mountPath": "/usr/src/app",
                                "name": "myclaim2"
                            }
                        ],
                        "securityContext": {
                            "capabilities": {},
                            "privileged": false
                        },
                        "terminationMessagePath": "/dev/termination-log"
                    }
                ],
                "volumes": [
                    {
                        "name": "myclaim2",
                        "persistentVolumeClaim": {
                            "claimName": "myclaim2"
                        }
                    }
                ],
                "dnsPolicy": "ClusterFirst",
                "restartPolicy": "Always",
                "serviceAccount": ""
            },
            "status": {}
        },
        {
            "apiVersion": "v1",
            "kind": "Service",
            "metadata": {
                "creationTimestamp": null,
                "name": "node-service"
            },
            "spec": {
                "portalIP": "",
                "ports": [
                    {
                        "name": "web",
                        "port": 8080,
                        "protocol": "TCP"
                    }
                ],
                "selector": {
                    "name": "node-test"
                },
                "sessionAffinity": "None",
                "type": "ClusterIP"
            },
            "status": {
                "loadBalancer": {}
            }
        },
        {
            "apiVersion": "v1",
            "kind": "Route",
            "metadata": {
                "annotations": {},
                "name": "node-route"
            },
            "spec": {
                "to": {
                    "name": "node-service"
                }
            }
        }
    ]
}

On Mon, Sep 19, 2016 at 2:19 PM, Ravi Kapoor 
<ravikapoor...@gmail.com<mailto:ravikapoor...@gmail.com>> wrote:

I created following job definition. It successfully creates a service, pod and 
a route. I am able to access the website.

It shows 1 Pod running, however, there are no scale up/down buttons in the UI.
How can I scale this application up?


_______________________________________________
users mailing list
users@lists.openshift.redhat.com
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.openshift.redhat.com_openshiftmm_listinfo_users&d=DQICAg&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=8IlWeJZqFtf8Tvx1PDV9NsLfM_M0oNfzEXXNp-tpx74&m=6l_MOhHqckZVxRAVlG5uYw1ZkOM5XppORXJ7qaoZCsk&s=zcRaAM1wl1KVuO50vZdVuVyCjyynVuwCFd-2Jc9ffAE&e=
_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to