- Identifying cores assigned to a particular container
ID=$(crictl ps --label io.kubernetes.container.name=<name-of-container> -o json | jq -r '.containers[0].id')
PID=$(crictl inspect $ID | jq -r '.info.pid')
taskset -pc $PID
| #!/bin/bash | |
| source ~/set-environment | |
| ADDING_NODES=${1:-"add-nodes"} | |
| USE_RENDERED=${2:-"true"} | |
| # path to rhcos-live iso | |
| export RHCOS_LIVE=~/images/rhcos-live.x86_64.iso | |
| if [ ! -f rhcos-live.x86_64.iso ]; then |
| #!/bin/bash | |
| set -euoE pipefail | |
| # Redfish commands related to Virtual Media. | |
| # Redfish doc reference: https://www.supermicro.com/manuals/other/RedfishRefGuide.pdf | |
| export BMC_ADDRESS='' | |
| export ISO_IMAGE=http://192.168.117.9:8080/ocp4-rwn-1-small.iso | |
| export username_password='Administrator:superuser' |
| --- | |
| apiVersion: sriovnetwork.openshift.io/v1 | |
| kind: SriovNetworkNodePolicy | |
| metadata: | |
| name: mh-vfio-ens2f0 | |
| namespace: openshift-sriov-network-operator | |
| spec: | |
| # name of Midhaul it connects to | |
| resourceName: mh_vfio_ens2f0 | |
| nodeSelector: |
| apiVersion: machineconfiguration.openshift.io/v1 | |
| kind: MachineConfig | |
| metadata: | |
| name: 50-worker-fix-keepalived | |
| labels: | |
| machineconfiguration.openshift.io/role: worker | |
| spec: | |
| config: | |
| ignition: | |
| version: 3.2.0 |
| --- | |
| apiVersion: machineconfiguration.openshift.io/v1 | |
| kind: MachineConfigPool | |
| metadata: | |
| name: ran-cu | |
| labels: | |
| machineconfiguration.openshift.io/role: ran-cu | |
| spec: | |
| machineConfigSelector: | |
| matchExpressions: |
| --- | |
| # oc edit ptpoperatorconfigs.ptp.openshift.io/default -n openshift-ptp | |
| # spec: | |
| # daemonNodeSelector: | |
| # node-role.kubernetes.io/worker-du: "" | |
| apiVersion: ptp.openshift.io/v1 | |
| kind: PtpConfig | |
| metadata: | |
| name: slave | |
| namespace: openshift-ptp |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: simple-pod | |
| spec: | |
| #nodeSelector: | |
| # kubernetes.io/hostname: worker-1 | |
| containers: | |
| - name: simple-pod | |
| image: registry.access.redhat.com/ubi8/ubi |
| #!/usr/bin/python3 | |
| """ | |
| Usage: python3 pp-rps-mc.py 1,2,52-53 > ran-rps-netqueues-fix.yaml ; oc apply -f ran-rps-netqueues-fix.yaml | |
| Updated April 2 2021 -- patch to address issue cnf1360 | |
| This script generates a MachineConfiguration OCP object that | |
| can be applied to a 4.6 cluster and adds additional tuning | |
| fixes related to networking. |
| apiVersion: machineconfiguration.openshift.io/v1 | |
| kind: MachineConfig | |
| metadata: | |
| name: 50-master-blacklist-ipi | |
| labels: | |
| machineconfiguration.openshift.io/role: master | |
| spec: | |
| config: | |
| ignition: | |
| version: 3.1.0 |