Created
September 23, 2019 04:01
-
-
Save waynedovey/11eb2985a82caef86714d4124b901153 to your computer and use it in GitHub Desktop.
OpenShift 4 CheetSheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Display currently installed operators and cluster version | |
oc adm release info | |
# List the current Operators Status | |
oc get clusteroperators | |
# Upgrade from command line | |
oc adm upgrade | |
# Remotely connet to the cluster. | |
oc debug node/ip-10-216-29-190.ap-southeast-2.compute.internal --image=rhel-tools | |
# Access the ETCD Shell | |
id=$(sudo crictl ps --name etcd-member | awk 'FNR==2{ print $1}') && sudo crictl exec -it $id /bin/sh | |
# export the ETCD env vars | |
export ETCDCTL_API=3 ETCDCTL_CACERT=/etc/ssl/etcd/ca.crt \ | |
ETCDCTL_CERT=$(find /etc/ssl/ -name *peer*crt) ETCDCTL_KEY=$(find /etc/ssl/ -name *peer*key) | |
# List cluster Members | |
etcdctl member list -w table | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bulletpoint n. 8 - Image signing
Deploy the services needed for signing (and scanning)
Make use of a
ImageSigningRequest
CRD which allows users to declare their intent to have an image signedNote: Unfortunately i am hitting the bug in v4, where RHEL subscriptions are not availabe in Dockerfile builds (
This system is not receiving updates. You can use subscription-manager on the host to register and assign subscriptions
). Users used to be able to use the RHEL subscriptions from the nodes in 3.11 when running rpm and yum install commands inside Dockerfiles that built on the platform. In OCP 4 builds use Buildah and therefore the entitlements are not available by default during the Dockerfile builds.