oc image info -a ~/.pull-secret.json --output json $(oc adm release info -a ~/.pull-secret.json --image-for=machine-os-content $(oc get clusterimagesets img4.12.7-x86-64-appsub -o jsonpath='{.spec.releaseImage}')) | jq .config.config.Labels | egrep coreos.rpm.kernel-rt-core
Get clusterID
oc get clusterversion version -o go-template='{{.spec.clusterID}}{{"\n"}}'
Get self-signed CA Cert
cat <<EOF > tmpfs-validation.yml
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: tmpfs-validation
name: tmpfs-validation
spec:
replicas: 1
selector:
matchLabels:
app: tmpfs-validation
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: tmpfs-validation
spec:
containers:
- image: quay.io/xymox/ubi8-debug-toolkit:latest
name: ubi8-debug-toolkit
resources: {}
command:
- /bin/sh
- -c
- sleep infinity
volumeMounts:
- name: tmp-storage
mountPath: /data/tmp
volumes:
- name: tmp-storage
emptyDir:
medium: Memory
mountOptions:
- size=100
- noexec
- nosuid
status: {}
EOF
oc apply -f tmp-validation.yml
oc -n openshift-marketplace get events --sort-by='.lastTimestamp'
WIP
oc get secret signing-key -n openshift-service-ca -o jsonpath='{.data.tls\.crt}' | base64 -d > ocp-ca.pem
echo quit | openssl s_client -showcerts -servername server -connect api.osp-ocp4-07.clustership.com:6443 > cacert.pem
It does not work with curl.