This file contains 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://docs.openshift.com/container-platform/4.15/networking/ingress-sharding.html |
This file contains 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
#!/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 |
This file contains 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://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/ |
This file contains 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://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ |
This file contains 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
# older than 5 days | |
find /path/to/files* -mtime +5 -exec rm {} \; |
This file contains 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
# 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 |
This file contains 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
kubectl config rename-context <current-name> <wished-name> | |
kubectl config use-context <wished-name> | |
kubectl config set-context --current --namespace=<wished-namespace> |
This file contains 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/rancher/os/pull/2545 | |
https://github.com/rancher/os/issues/2726 |
This file contains 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
#!/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 |
This file contains 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
#!/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}" | |
# } |