docker system prune -a -f --volumes
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
sed -r -i'.BAK' 's/^deb(.*)$/deb\1 contrib/g' /etc/apt/sources.list | |
# MUST REMOVE zfs-dkms zfs-zed , so modules will not conflict: | |
sudo apt purge -y zfs-dkms zfs-zed zfsutils-linux | |
sudo apt update -y | |
sudo apt upgrade -y | |
echo "NOW REBOOT, to both: fully remove zfs-dkms&zfs-zed AND take eventually latest kernel, you are now $(uname -r)" | |
sleep 100 | |
#reboot # to take latest uname -r |
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
## 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 |
All these 3 links below will redirect to: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
- https://github.com/coreos/flannel/blob/master/Documentation/kube-flannel.yml?raw=true
- https://github.com/coreos/flannel/raw/master/Documentation/kube-flannel.yml
- https://github.com/coreos/flannel/raw/master/Documentation/kube-flannel.yml?raw=true
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
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
```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 | |
--- |