Skip to content

Instantly share code, notes, and snippets.

View nvalerkos's full-sized avatar
:bowtie:

Nikolas Valerkos nvalerkos

:bowtie:
View GitHub Profile
@nvalerkos
nvalerkos / clean-kubernetes-master-worker.md
Last active June 3, 2023 07:15 — forked from devops-school/clean-kubernetes-master-worker.md
How to delete/remove/clean existing corrupted or old kubeadm kubernetes clusters setup?
docker rm $(docker ps -aq)
docker rm -f -v $(docker ps -q)
systemctl stop kubelet
systemctl stop docker
find /var/lib/kubelet | xargs -n 1 findmnt -n -t tmpfs -o TARGET -T | uniq | xargs -r umount -v
rm -r -f /etc/kubernetes /var/lib/kubelet /var/lib/etcd
kubeadm reset
iptables --flush
sudo rm -rf ~/.kube
@nvalerkos
nvalerkos / PVE-HP-ssacli-smart-storage-admin.md
Created October 2, 2020 08:18 — forked from mrpeardotnet/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096