requires
jq
CLI
oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'
#!/bin/sh | |
# Adapt the two first variables to your environment | |
# Requirements: | |
# -the user below can connect to the IP without password (copy ssh key) | |
# changes on server: ...share/crashplan/conf/my.service.xml: | |
# <serviceUIConfig> | |
# <serviceHost>0.0.0.0</serviceHost> | |
# | |
CPSSHUSER='root' |
requires
jq
CLI
oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'
--- | |
apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: etcd-backup | |
spec: | |
schedule: "*/1 * * * *" | |
jobTemplate: | |
spec: | |
template: |
adapted from https://access.redhat.com/solutions/4165791
$ oc api-resources --verbs=list --namespaced -o name | xargs -I {} bash -c "oc get --show-kind --ignore-not-found -n openshift-storage {}"
/* | |
- RefURL | |
https://docs.openshift.com/container-platform/4.7/installing/installing_aws/installing-aws-account.html#installation-aws-permissions_installing-aws-account | |
- Required EC2 permissions for installation | |
file: ocp4-ec2-permissions.json | |
*/ | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ |
Running the following script to get a nice summary of all network interface information which includes the Interface Name, IP Address, MAC Address, Link State, Link Speed, MTU, Vendor, Device ID, Driver, Total VFs, Configured VFs, and PCIe Address.
For OpenShift Single-Node deployments, you can run the following simple command:
curl -sL https://tinyurl.lab.ocp.run/ocp-netprint-sno | bash
For OpenShift Multi-Node deployments, you can run the following two commands (you need to export the var):