RHCA之路---EX280(9)

RHCA之路—EX280(9)

1. 题目

RHCA之路---EX280(9)_第1张图片
Scale the application greeter in the project samples to a total of 5 replicas

2. 解题

2.1 切换项目

[root@master ex280]# oc project samples
Now using project "samples" on server "https://master.lab.example.com".
[root@master ex280]# oc projects
You have access to the following projects and can switch between them with 'oc project ':

    default
    ditto
    farm
    kube-public
    kube-service-catalog
    kube-system
    logging
    management-infra
    openshift
    openshift-ansible-service-broker
    openshift-infra
    openshift-node
    openshift-template-service-broker
    openshift-web-console
    rome
  * samples
    shrimp

Using project "samples" on server "https://master.lab.example.com".

2.2 伸缩dc

[root@master ex280]# oc scale dc greeter --replicas=5
deploymentconfig "greeter" scaled

3. 确认

[root@master ex280]# oc get dc
NAME      REVISION   DESIRED   CURRENT   TRIGGERED BY
greeter   1          5         5         config,image(greeter:latest)
[root@master ex280]# oc get pods
NAME              READY     STATUS    RESTARTS   AGE
greeter-1-5hvtx   1/1       Running   0          38s
greeter-1-64q42   1/1       Running   0          47m
greeter-1-cwtg2   1/1       Running   0          38s
greeter-1-t2f2p   1/1       Running   0          38s
greeter-1-ttrxh   1/1       Running   0          38s

你可能感兴趣的:(rhca,Linux,RHCA,linux)