The script attempts to collect what images are used in current (or given namespace) and what objects reference them.
jq
utility needs to be installed on machine running this command
set localconfig | |
set autoupdategist | |
let configpath='~/.config/google-chrome/cVimrc' | |
let vimport=8001 | |
let nextmatchpattern='((?!first)(next|older|more|>|→|›|»|forward|další|dále|následující|starší|více| )+)' | |
let prevmatchpattern='((?!last)(prev(ious)?|newer|back|«|less|<|←|‹|předchozí|novější|méně| )+)' | |
" default insert keybindings |
version: 0.1 | |
log: | |
fields: | |
service: registry | |
storage: | |
cache: | |
blobdescriptor: inmemory | |
swift: | |
# Access object store container at http://qeos.centralci.eng.rdu2.redhat.com/ | |
# Project -> Compute -> Access & Security -> Identity |
sudo journalctl -u docker -e --since=-1h | |
... | |
Oct 13 09:38:55 f24-ose.vm docker[4241]: time="2016-10-13T09:38:55.958654078+02:00" level=info msg="{Action=push, Username=vagrant, LoginUID=1001, PID=17124}" | |
Oct 13 09:38:55 f24-ose.vm docker[4241]: time="2016-10-13T07:38:55.961106686Z" level=debug msg="authorizing request" go.version=go1.6.3 http.request.host=registry.f24-ose.vm http.request.id=a2511965-e841-45da-a2f6-a4c140f931d4 http.request.method=GET http.request.remoteaddr=192.168.100.80 http.request.uri="/v2/" http. | |
Oct 13 09:38:55 f24-ose.vm docker[4241]: time="2016-10-13T07:38:55.961300887Z" level=error msg="error authorizing context: authorization header required" go.version=go1.6.3 http.request.host=registry.f24-ose.vm http.request.id=a2511965-e841-45da-a2f6-a4c140f931d4 http.request.method=GET http.request.remoteaddr=192.168 | |
Oct 13 09:38:55 f24-ose.vm docker[4241]: 172.17.0.1 - - [13/Oct/2016:07:38:55 +0000] "GET /v2/ HTTP/1.1" 401 87 "" "docker/1.10.3 go/go1.6.3 kernel/4.7.6-200.fc24.x86_64 os/linux a |
#!/bin/bash | |
set -iuo pipefail | |
IFS=$'\n\t' | |
readonly AUDITOR_ROLE='system:image-auditor' | |
readonly USAGE="Usage: $(basename ${BASH_SOURCE[0]}) [OPTIONS] | |
It fetches manifests of images from OpenShift integrated registry forcing it to |
#!/bin/bash | |
function get_ip() { | |
for intf in enp0s8 eth1 eth0 enp0s3 net0; do | |
ip=`ip addr show $intf | sed -n 's,^\s\+inet\s\+\(\([0-9]\+\)\.[^/]\+\)/.*brd.*,\1,p'` | |
if [[ -n "$ip" ]]; then | |
echo "$ip" | |
return 0 | |
fi | |
done |
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
readonly AUDITOR_ROLE='system:image-auditor' | |
readonly DEFAULT_DAYS=3 | |
readonly DEFAULT_STORAGE_PATH_ROOT="/registry" | |
readonly DEFAULT_CONFIG_PATH="/config.yml" |
saname=`oc get -o jsonpath=$'{.metadata.namespace}:{.spec.serviceAccount}\n' pod nfs-provisioner` | |
oc adm policy add-scc-to-user scc-nfs-provisioner \ | |
'system:serviceaccount:<serviceaccount_namespace>:<serviceaccount_name>' |
dev-miminar-sap-vora-cluster |