Skip to content

Instantly share code, notes, and snippets.

## Custom lifetime of certs
cat << EOF > /etc/default/k3s
CATTLE_NEW_SIGNED_CERT_EXPIRATION_DAYS=3650
EOF
curl -sfL https://get.k3s.io | sh -
## Check certs
for i in `ls /var/lib/rancher/k3s/server/tls/*.crt`; do echo $i; openssl x509 -enddate -noout -in $i; done
@kingsd041
kingsd041 / rke2-commands.md
Created September 3, 2021 07:41 — forked from superseb/rke2-commands.md
RKE2 / rancherd commands

RKE2 commands

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
@kingsd041
kingsd041 / azurefiles.md
Last active May 13, 2019 09:23 — forked from thxCode/cloudprovider-azurefiles.md
Windows Storage Test

Dynamic - PVC

Following https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv.

Create a StorageClass for creating PV dynamically

For now, we can only choose the following Azure storage redundancy for skuName:

  • Standard_LRS - standard locally redundant storage (LRS)
  • Standard_GRS - standard geo-redundant storage (GRS)
  • Standard_RAGRS - standard read-access geo-redundant storage (RA-GRS)