Skip to content

Instantly share code, notes, and snippets.

@ReSearchITEng
ReSearchITEng / k8s.install.ingress.using.helm.charts.txt
Last active March 2, 2018 17:31
k8s install ingress using helm charts
```shell
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
helm init
helm delete --purge nginx-ingress
helm install --name nginx-ingress --namespace kube-system stable/nginx-ingress --set rbac.create=true --set controller.stats.enabled=true --set controller.service.type=NodePort --set controller.service.nodePorts.http=32080 --set controller.service.nodePorts.https=32443 --set controller.stats.enabled=true --set controller.service.externalTrafficPolicy=Local
```
#--set controller.service.externalIPs=127.0.0.1
stats&metrics: curl http://localhost:8080/nginx_status/format/json
---
@ReSearchITEng
ReSearchITEng / golang-install.md
Last active April 30, 2021 10:11
golang install in ubuntu + update-alternatives

GOLANG

sudo add-apt-repository -y ppa:longsleep/golang-backports
#sudo apt-get install -y golang-1.12
sudo apt-get install -y golang-1.15

check if you have go using alternatives:

sudo update-alternatives --query go
sudo update-alternatives --query gofmt
#sudo update-alternatives --all --skip-auto

@ReSearchITEng
ReSearchITEng / github raw file content.md
Last active May 1, 2020 06:20
github raw file content

All these 3 links below will redirect to: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

Alternative:

curl -sSL https://api.github.com/repos/coreos/flannel/contents/Documentation/kube-flannel.yml?ref=master | grep -w content | cut -d'"' -f4 | sed 's!\\n!!g' | base64 -d
@ReSearchITEng
ReSearchITEng / apt-key migration from trusted.gpg to keyrings
Created June 30, 2022 04:58
Solving Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
## Solution for
## Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
apt-key list > tempfile
# vi tempfile and keep only the section coming from: /etc/apt/trusted.gpg and then rename it as tempfile_updated
readarray -t x < tempfile_updated
for a in "${x[@]}"; do apt-key export "$a" >/etc/apt/keyrings/"$a".gpg; done
@ReSearchITEng
ReSearchITEng / clean zfs snapshots.md
Last active March 22, 2024 13:04
clean zfs snapshots