2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Red Hat OpenShift on IBM Cloud(VPC):よく使うibmcloud ocコマンド実行例

Last updated at Posted at 2020-07-05

クラスター情報

クラスター情報
$ ibmcloud oc cluster ls --provider vpc-gen2
OK
Name                         ID                     State    Created       Workers   Location   Version                 Resource Group Name
myroksclustervpc             bru1t0nd075uqsfusee0   normal   3 days ago    6         Dallas     4.3.23_1527_openshift   Common


$ ibmcloud oc cluster get --cluster myroksclustervpc
Retrieving cluster myroksclustervpc...
OK

Name:                           myroksclustervpc
ID:                             bru1t0nd075uqsfusee0
State:                          normal
Created:                        2020-07-01 14:26:26 +0900 (3 days ago)
Resource Group ID:              89e3e245955e4c59a83bc9d0db590082
Resource Group Name:            Common
Workers:                        6
Worker Zones:                   us-south-1, us-south-2, us-south-3
Ingress Subdomain:              myroksclustervpc-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-0000.us-south.containers.appdomain.cloud
Ingress Secret:                 myroksclustervpc-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-0000
Ingress Status:                 healthy
Ingress Message:                All Ingress components are healthy
Creator:                        -
Public Service Endpoint URL:    https://xxxx-e.us-south.containers.cloud.ibm.com:xxxxx
Private Service Endpoint URL:   https://xxxx.private.us-south.containers.cloud.ibm.com:xxxxx
Pull Secrets:                   enabled in the default namespace
VPCs:                           r006-0d78cc86-87f6-4fe2-b0c7-ca603862d178

Master
Status:     Ready (3 days ago)
State:      deployed
Health:     normal
Version:    4.3.23_1527_openshift
Location:   Dallas
URL:        https://xxxx-e.us-south.containers.cloud.ibm.com:xxxxx

WorkerNode情報

WorkerNode情報
$ ibmcloud oc worker ls --cluster myroksclustervpc --show-pools
OK
ID                                                       Primary IP     Flavor     State    Status   Zone         Version                 Worker Pool
kube-bru1t0nd075uqsfusee0-myroksclust-default-00000147   10.240.0.5     bx2.4x16   normal   Ready    us-south-1   4.3.25_1527_openshift   default
kube-bru1t0nd075uqsfusee0-myroksclust-default-0000026a   10.240.0.4     bx2.4x16   normal   Ready    us-south-1   4.3.25_1527_openshift   default
kube-bru1t0nd075uqsfusee0-myroksclust-default-00000399   10.240.128.5   bx2.4x16   normal   Ready    us-south-3   4.3.25_1527_openshift   default
kube-bru1t0nd075uqsfusee0-myroksclust-default-00000410   10.240.128.4   bx2.4x16   normal   Ready    us-south-3   4.3.25_1527_openshift   default
kube-bru1t0nd075uqsfusee0-myroksclust-default-00000586   10.240.64.5    bx2.4x16   normal   Ready    us-south-2   4.3.25_1527_openshift   default
kube-bru1t0nd075uqsfusee0-myroksclust-default-000006a5   10.240.64.4    bx2.4x16   normal   Ready    us-south-2   4.3.25_1527_openshift   default

$ ibmcloud oc worker-pool get --cluster myroksclustervpc --worker-pool default
Retrieving worker pool default from cluster myroksclustervpc...
OK

Name:               default
ID:                 bru1t0nd075uqsfusee0-0cc093e
State:              active
Hardware:           shared
VPC:                r006-0d78cc86-87f6-4fe2-b0c7-ca603862d178
Labels:             ibm-cloud.kubernetes.io/worker-pool-id=bru1t0nd075uqsfusee0-0cc093e
Flavor:             bx2.4x16
Workers per Zone:   2
Total Workers:      6

Zones
Zone         Workers   Subnets
us-south-1   2         0717-7db846d0-4d0d-45f6-877f-2f9ff41ae4d2
us-south-2   2         0727-41af696b-b2c7-41db-b070-10e9109bdb9f
us-south-3   2         0737-92c5e74e-c5d2-4a08-b663-cdec042724b1

Zoneごとのネットワーク情報

Zoneごとのネットワーク情報
$ ibmcloud oc subnets --provider vpc-gen2 --vpc-id r006-0d78cc86-87f6-4fe2-b0c7-ca603862d178 --zone us-south-1
OK
Name               ID                                          Public Gateway Name   Public Gateway ID                           IPv4 CIDR Block   Available IPv4 Addresses
subnet-roks-dal1   0717-7db846d0-4d0d-45f6-877f-2f9ff41ae4d2   pgw-dal1              r006-df7d14ad-6463-44ef-a742-ddb4694585b8   10.240.0.0/24     247

$ ibmcloud oc subnets --provider vpc-gen2 --vpc-id r006-0d78cc86-87f6-4fe2-b0c7-ca603862d178 --zone us-south-2
OK
Name               ID                                          Public Gateway Name   Public Gateway ID                           IPv4 CIDR Block   Available IPv4 Addresses
subnet-roks-dal2   0727-41af696b-b2c7-41db-b070-10e9109bdb9f   pgw-dal2              r006-f1a36d1f-0cc9-4d08-9904-6f6bb93aea74   10.240.64.0/24    246

$ ibmcloud oc subnets --provider vpc-gen2 --vpc-id r006-0d78cc86-87f6-4fe2-b0c7-ca603862d178 --zone us-south-3
OK
Name               ID                                          Public Gateway Name   Public Gateway ID                           IPv4 CIDR Block   Available IPv4 Addresses
subnet-roks-dal3   0737-92c5e74e-c5d2-4a08-b663-cdec042724b1   pgw-dal3              r006-f262604d-acd7-47c7-81f5-b2ab5bc56b51   10.240.128.0/24   247

Ingress/Routerのサブドメイン情報

サブドメイン情報
$ ibmcloud oc nlb-dns ls --cluster myroksclustervpc
OK
Subdomain                                                                                    Load Balancer Hostname                 SSL Cert Status   SSL Cert Secret Name                                     Secret Namespace
myroksclustervpc-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-0000.us-south.containers.appdomain.cloud   22461f82-us-south.lb.appdomain.cloud   created           myroksclustervpc-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-0000   openshift-ingress
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?