# https://kind.sigs.k8s.io/docs/user/known-issues#pod-errors-due-to-too-many-open-files
cat > /etc/sysctl.d/99-docker.conf <<EOF
fs.inotify.max_user_watches = 524288
fs.inotify.max_user_instances = 512
EOF
sysctl -f --system
service docker restart
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
# | |
# ubuntu-2204-2204-kubernetes-v1.28.5-2024-01-10 | |
# vs | |
# ubuntu-2204-2204-kubernetes-v1.28.15-2025-03-23 | |
# | |
--- version-1.28.5 2025-03-25 18:21:09.320144808 +0000 | |
+++ version-1.28.15 2025-03-25 22:24:21.601541525 +0000 | |
@@ -4,54 +4,50 @@ | |
Name Version | |
- https://cluster-api.sigs.k8s.io/reference/providers
- https://github.com/linode/cluster-api-provider-linode/
- https://github.com/SovereignCloudStack/cluster-stacks
- https://github.com/azimuth-cloud/capi-helm-charts/
- https://gitlab.com/Orange-OpenSource/kanod
- https://gitlab.com/sylva-projects/sylva-elements/helm-charts/sylva-capi-cluster/
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
#!/bin/bash | |
# | |
# teleport purge recording from log | |
# | |
log="${1:?log file}" | |
[ -f "$log" ] || exit 1 | |
grep sid "$log" |jq -re '.sid'|sort |uniq |while read a ; do | |
if [ -f ../records/$a.tar ] ;then | |
ls -l ../records/$a.tar | |
rm ../records/$a.tar |
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
#!/bin/bash | |
# | |
# install oci-registry https://github.com/mcronce/oci-registry/ | |
# oci-registry is an implementation of the OCI Registry spec with filesystem and S3 storage back-ends | |
# Pull-through cache for any registry | |
# | |
set -e -o pipefail | |
docker version || exit 1 | |
test -f proxy.sh && source proxy.sh |
git clone https://github.com/rwv/lookscanned.io
cd lookscanned.io
docker run -p 3000:3000 -v .:/build -it --rm node:latest bash -c '(cd /build && npm run dev -- --host)'
# connect to localhost:3000
For training purpose or lab.
Install qemu on mac
nice tutorial qemu on mac setup
brew install qemu
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
#/bin/bash | |
# get helm-charts | |
git clone https://github.com/prometheus-community/helm-charts | |
# update helm dependency for kube-prometheus-stack | |
helm dependency update ../helm-charts/charts/kube-prometheus-stack | |
# apply patch from kustomize directory whith hook.sh and kustomization.yaml | |
cd kustomize | |
helm install kube-prometheus-stack ../helm-charts/charts/kube-prometheus-stack --post-renderer=./hook.sh --debug --dry-run |
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
# Github visual code liveshare | |
- select github repo | |
- select/create branch | |
- press `.` key | |
- in vscode: select "live share" |
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
#!/bin/bash | |
URL="${1:? $(basename $0) URL}" | |
( | |
cd /var/log/nginx | |
for f in $(ls -rt1 access.log*) ; do | |
case $f in | |
*.gz) GREP="zgrep" ;; | |
*) GREP="grep" ;; | |
esac |
NewerOlder