Openshift Common
- E2E validation of a OCP4 deployment
- https://access.redhat.com/containers/?tab=overview&get-method=registry-tokens#/registry.access.redhat.com/openshift4/ose-tests
- https://access.redhat.com/containers/?tab=images&get-method=registry-tokens#/registry.access.redhat.com/openshift4/ose-tests
- Untaint master in order to let the OCP installer continue with pod deployment
oc adm taint nodes -l node-role.kubernetes.io/master node-role.kubernetes.io/master:NoSchedule-
kubectl logs -n metal3 pod/cluster-api-provider-baremetal-controller-manager-0 -c manager -f
export OS_TOKEN=fake-token
export OS_URL=http://localhost:6385/
openstack baremetal node list
- Create a new node on KVM for Minikube
go run $GOPATH/src/github.com/metal3-io/baremetal-operator/cmd/make-bm-worker/main.go -address ipmi://192.168.111.1:6232 -password password -user admin -boot-mac 00:6c:f2:66:00:fc worker-1 | kubectl create -n metal3 -f -
- Patch SC to be the default one
kubectl patch storageclass mycluster-ceph-rbd -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
kubectl get po --all-namespaces --field-selector 'status.phase!=Running' -o json | kubectl delete -f -
oc --config ocp/auth/kubeconfig get machines -n openshift-machine-api --no-headers -o jsonpath="{['items'][0]['metadata']['labels']['machine\.openshift\.io/cluster-api-cluster']}"
- Install a concrete version of OCP4 update
OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE=registry.svc.ci.openshift.org/ocp/release:4.2.0-0.nightly-2019-08-19-113631
- Add insecure registry to Master Nodes using Machine Config Operator
oc patch image.config.openshift.io/cluster -p '{"spec":{"allowedRegistriesForImport":[{"domainName":"brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888","insecure":true}],"registrySources":{"insecureRegistries":["brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888"]}}}' --type='merge'
- Change SDN on installation time:
- https://docs.openshift.com/container-platform/4.1/installing/installing_aws/installing-aws-network-customizations.html#network-customization-config-yaml_installing-aws-network-customizations