Skip to content

Instantly share code, notes, and snippets.

View 300481's full-sized avatar
🌳

Dennis Riemenschneider 300481

🌳
View GitHub Profile
@300481
300481 / gist:34b5b53a04207223ca4ea5157f38de5f
Created June 17, 2024 07:11
OpenShift Ingress Sharding Doc
https://docs.openshift.com/container-platform/4.15/networking/ingress-sharding.html
@300481
300481 / addkeys.sh
Last active November 12, 2021 14:45
add my ssh public keys
#!/bin/bash
# https://tinyurl.com/300481
cd
mkdir .ssh
chmod 700 .ssh
curl https://github.com/300481.keys > .ssh/authorized_keys
chmod 400 .ssh/authorized_keys
@300481
300481 / helm_charts
Last active September 25, 2020 10:44
Helm Charts Repo
https://medium.com/containerum/how-to-make-and-share-your-own-helm-package-50ae40f6c221
helm package my-app
helm repo index ./ --url https://300481.github.io/charts/
https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
@300481
300481 / find.sh
Created February 6, 2020 08:06
find files
# older than 5 days
find /path/to/files* -mtime +5 -exec rm {} \;
@300481
300481 / gist:e0e76f752f764c6a55420fad76196e89
Last active June 30, 2020 09:10
delete terminating namespace
# 1. kubectl get ns ${NAMESPACE} -o json > tmp.json
# 2. remove items from finalizers array in tmp.json
# 3. curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/${NAMESPACE}/finalize
# source : https://success.docker.com/article/kubernetes-namespace-stuck-in-terminating
@300481
300481 / kubectl.sh
Last active October 11, 2019 07:52
kubectl Spicker
kubectl config rename-context <current-name> <wished-name>
kubectl config use-context <wished-name>
kubectl config set-context --current --namespace=<wished-namespace>
@300481
300481 / gist:f419e68afb37509ee1a330f099df22b5
Last active July 14, 2019 21:33
link to rancheros cryptsetup state
https://github.com/rancher/os/pull/2545
https://github.com/rancher/os/issues/2726
#!/bin/bash
SELF_DIR=`git rev-parse --show-toplevel`
DATABASE=$SELF_DIR/.permissions
echo -n "Restoring file permissions..."
IFS_OLD=$IFS; IFS=$'\n'
while read -r LINE || [[ -n "$LINE" ]];
do
@300481
300481 / tag-cluster-resources.sh
Created February 1, 2019 07:03
as Azure AKS generated resources are not tagged, we will do (https://github.com/Azure/AKS/issues/207)
#!/bin/bash
# regarding this issue: https://github.com/Azure/AKS/issues/207
# we must tag the autogenerated resources by ourselves
# resource_group_name definition in terraform:
# output "resource_group_name" {
# value = "${module.resource_group.name}"
# }