Skip to content

Instantly share code, notes, and snippets.

View rbo's full-sized avatar
🏠
Working from home

Robert Bohne rbo

🏠
Working from home
View GitHub Profile
variant: openshift
version: 4.12.0
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: 99-kube-apiserver-proxy
storage:
files:
- path: /etc/kubernetes/apiserver-proxy-config/haproxy.cfg
mode: 0644
@rbo
rbo / x11.yaml
Created March 17, 2022 14:21
x11
apiVersion: apps/v1
kind: Deployment
metadata:
name: x11
labels:
app: x11
app.kubernetes.io/component: x11
app.kubernetes.io/instance: x11
app.kubernetes.io/name: x11
app.kubernetes.io/part-of: x11-app
@rbo
rbo / README.md
Last active February 7, 2022 19:14
Get operator features

Start index image:

podman run -p50051:50051 \
  -it registry.redhat.io/redhat/redhat-operator-index:v4.9

Run ./do.sh

./do.sh | head
@rbo
rbo / README.md
Created February 5, 2022 18:51
Fedora IoT, NVME & Raspbarry Pi4

Install Fedora IoT

$ sudo arm-image-installer --target=rpi4 --image Downloads/Fedora-IoT-35-20220101.0.aarch64.raw.xz --addkey=$HOME/.ssh/id_ed25519.pub --media=/dev/sda --resizefs

=====================================================
= Selected Image:
= Downloads/Fedora-IoT-35-20220101.0.aarch64.raw.xz
= Selected Media : /dev/sda
@rbo
rbo / README.md
Last active August 30, 2023 11:30
How to disable yubikey / certificate for firefox

Firefox Settings

-> Privacy & Security -> Security Devcices

image

Before

2021-08-24-16-43-29-1629816209

@rbo
rbo / example.yaml
Created June 11, 2021 07:59
Newlines in "eval" break "del()" behaviour
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
creationTimestamp: "2021-03-19T18:28:38Z"
name: machine-api-operator
resourceVersion: "2156"
selfLink: /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/machine-api-operator
@rbo
rbo / README.md
Created February 2, 2021 15:57
Kubernetes secret default mode
oc apply -f - <<EOF
apiVersion: v1
data:
  username: YWRtaW4=
  password: MWYyZDFlMmU2N2Rm
kind: Secret
metadata:
  name: mysecret
type: Opaque
@rbo
rbo / dns-checker.daemonset.yaml
Last active January 8, 2021 13:05
Check connection to openshift coredns endpoints
# How to deploy:
# oc new-project dns-checker
# oc adm policy add-cluster-role-to-user cluster-reader -z default
# oc apply -f ...
# Example logout:
# # Collected DNS Endpoints: 10.129.0.40 10.129.2.5 10.130.0.13 10.130.2.3 10.131.0.7 10.131.2.3
# # Run on Node: compute-1.ocp3.stormshift.coe.muc.redhat.com
# # Fri Jan 8 13:04:32 UTC 2021
# DNS IP: 10.129.0.40 : PASS (Details: 172.30.0.1 from server 10.129.0.40 in 0 ms. )
# DNS IP: 10.129.2.5 : PASS (Details: 172.30.0.1 from server 10.129.2.5 in 0 ms. )
$ cat << EOF > Dockerfile
FROM fedora:latest
RUN touch /foo
ONBUILD RUN touch /bar
EOF
$ cat << EOF > Dockerfile-2
FROM onbuild-image
RUN touch /baz
EOF
@rbo
rbo / README.md
Last active October 30, 2020 10:41
[containers / podman] podman push twice results in two different digests #6496

Env

# podman version
Version:      2.1.1
API Version:  2.0.0
Go Version:   go1.15.2
Built:        Wed Oct  7 16:21:42 2020
OS/Arch:      linux/arm64

[root@ip-172-31-28-122 multi-arch-container-image]# cat /etc/*rel*