A list of useful Tips and useful links are on this page.
Tips
Tip 1: If you fail on setup, check the networking is open on the private network. You can check the Enable Communication Over the Private Network topic Option 2.
Describe a Resource
● oc explain pod –recursive
● oc explain pod.spec.containers
Links
-
- Create Subnets
- Create Logical Partitions on ppc64le architecture
- Load Boot Images
-
ppc64le-cloud/pvsadm is a tool for managing IBM Power Systems Virtual Servers.
-
OpenShift User Provided Infrastructure Install provides Terraform based automation code to help with the deployment of OpenShift Container Platform (OCP) 4.x on IBM Power Systems Virtual Server on IBM Cloud.
export VERSION=4.10
git clone --single-branch --branch release-$VERSION \
https://github.com/ocp-power-automation/ocp4-upi-powervs.git
-
ocp-power-automation/ocp4-upi-powervs A set of scripts, from my colleague Rafael, to manage PowerVS.
-
OpenShift Container Platform 4.x Tested Integrations (for ppc64le) lists the tested integrations.
-
Deploying Red Hat OpenShift Container Platform 4.x on IBM Power Systems Virtual Servers detailed learning path for installing on PowerVS
Cross-compiling and Running Multi architecture builds
Here are some quick tips:
Rebooting a Worker Node
While the preferred method is to sequentially go through the Reboot Steps. The following is the dirty method to reboot a node and simulate a disruption.
- Login to OpenShift
# oc login --token=sha256~xyz --server=https://api.xyz.sslip.io:6443
Logged into "https://api.xyz.sslip.io:6443" as "kube:admin" using the token provided.
Using project "default".
- List the worker nodes
$ oc get nodes -lnode-role.kubernetes.io/worker
NAME STATUS ROLES AGE VERSION
worker-0.xyz.sslip.io Ready worker 50d v1.23.5+b0357ed
worker-1.xyz.sslip.io Ready worker 50d v1.23.5+b0357ed
- Connect to the node
$ oc debug node/worker-0.xyz.sslip.io
Starting pod/worker-xyz-debug ...
To use host binaries, run `chroot /host`
Pod IP: 192.168.0.90
If you don't see a command prompt, try pressing enter.
- Change the root
$ chroot /host
- Reboot the node
$ systemctl reboot
Wait for the node to come back up.
OpenShift – Add a user as a Cluster Admin
-
Navigate to https://cloud.ibm.com/
-
- Login to ibmcloud using the commandline tool
$ ibmcloud login --sso
-
Select account your development account
-
Configure your cluster with your cluster id
$ ibmcloud oc cluster config -c ex-ocp-lon06 --admin
- Type oc login (it’ll tell you where to request the oauth token)
$ oc login
You must obtain an API token by visiting https://c108-e.eu-gb.containers.cloud.ibm.com:31344/oauth/token/request
-
Navigate to https://c108-e.eu-gb.containers.cloud.ibm.com:31344/oauth/token/request It may prompt you to login and then
Display Token
-
Login to OpenShift
$ oc login --token=sha256~aaa --server=https://c108-e.eu-gb.containers.cloud.ibm.com:31609
- List the users in your cluster
$ oc get users
NAME UID FULL NAME IDENTITIES
IAM#d3@ibm.com 3-a5a8-4ca4-2-1 IAM:IBMid-111
IAM#d2@ibm.com 3-61e9-4cc0-3-34 IAM:IBMid-112
IAM#d1@us.ibm.com 3-4c66-44a4-5-2 IAM:IBMid-113
- Add the user to the Cluster Role
cluster-admin
$ oc adm policy add-cluster-role-to-user cluster-admin 'IAM#d1@us.ibm.com'
clusterrole.rbac.authorization.k8s.io/cluster-admin added: "IAM#d1@us.ibm.com"
Reference