$ oc get csr
No resources found in default namespace.
$ oc get nodes
NAME STATUS ROLES AGE VERSION
compute-0 Ready worker 43d v1.16.2
compute-1 Ready worker 123d v1.16.2
master-0 Ready infra,master,worker 123d v1.16.2
This file contains hidden or 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
# https://github.com/justjanne/powerline-go | |
if [ -x "$(command -v powerline-go)" ]; then | |
function _update_ps1() { | |
rc=$? | |
if [ -x "$(command -v powerline-go)" ]; then | |
PS1="$(powerline-go -error $rc -max-width 80 -newline -colorize-hostname -modules "ssh,host,user,cwd,perms,git,kube,exit" -priority "ssh,host,cwd,exit,git,kube" -modules-right "time" )" | |
else | |
PS1="\u@\h:\w $ " | |
fi | |
} |
This file contains hidden or 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
[Unit] | |
Description=Mirror registry (mirror-registry) | |
After=network.target | |
[Service] | |
Type=simple | |
TimeoutStartSec=5m | |
ExecStartPre=-/usr/bin/podman rm "mirror-registry" | |
ExecStartPre=/usr/bin/podman pull docker.io/library/registry:2 |
This file contains hidden or 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
#!/usr/bin/env bash | |
if [ $# -eq 0 ] ; then | |
echo "Usage: $0 HOSTNAME bootstrap_ignition_config_url"; | |
exit 1; | |
fi | |
HOSTNAME=${1:-bootstrap.ocp4-upi.bohne.io} | |
IGN_URL=${2} |
This file contains hidden or 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
apiVersion: v1 | |
baseDomain: | |
compute: | |
- hyperthreading: Enabled | |
name: worker | |
replicas: 0 | |
controlPlane: | |
hyperthreading: Enabled | |
name: master | |
replicas: 3 |
oc patch configmap/logging-fluentd -p "$(jq -n --arg es "$(cat output-custom-es-config.conf)" '{"data":{"output-custom-es-config.conf":$es}}')"
- Install podman-manchine from https://github.com/boot2podman/machine/releases
- Install podman via homebrew
brew cask install podman
$ export PATH=$(pwd):$PATH
$ podman-machine create box
Podman machine "box" already exists
$ podman-machine start box
Starting "box"...
oc create secret generic rbo-demo-demo-auth
--from-file=.dockerconfigjson=rbo-demo-demo-auth.json
--type=kubernetes.io/dockerconfigjson
rbohne@dune:~/q/openshift-examples/simple-http-server $ docker login registry.gitlab.com
Authenticating with existing credentials...
Login Succeeded
rbohne@dune:~/q/openshift-examples/simple-http-server $ docker build -t registry.gitlab.com/rbohne/openshift .
This file contains hidden or 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
FROM registry.redhat.io/openshift4/ose-operator-registry:v4.2.0 as builder | |
ENV sdf=asdfsaa | |
COPY community-operators/openshift-pipelines-operator manifests | |
RUN /usr/bin/initializer -o /registry/bundles.db | |
#FROM scratch | |
FROM registry.redhat.io/openshift4/ose-operator-registry:v4.2.0 | |
COPY --from=builder /registry/bundles.db /bundles.db | |
COPY --from=builder /usr/bin/registry-server /registry-server | |
COPY --from=builder /usr/bin/grpc_health_probe /bin/grpc_health_probe |