Category: Sys Admin Stuff

Kubernetes: Cheat Sheet

force delete of stuck pod kubectl delete pod --grace-period=0 --force --namespace [NAMESPACE] [POD_NAME]

Gluster: Add Volume

test-volume = the name you want to give the volumeserver1 and server2 = hostname of the gluster servers in /etc/hosts/exp1…

Kubernetes: Expose a Port to a Pod

Create a yaml file for the service like below. app = the app label of the podport = the port…

Kubernetes: Create a Pod with Persistent Local Volume

taken from https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/ Create yaml file for the persistent volume(PV). storageClassName = a name you give to create a storage class…

How-to test a TCP port without telnet or nc

You can access TCP ports at /dev/tcp/host/port /dev/tcp/host/port If host is a valid hostname or Internet address, and port is…

Netplan Multiple Interfaces

network: version: 2 renderer: networkd ethernets: eth0: addresses: - 10.0.0.123/24 dhcp4: no gateway4: 10.0.0.1 nameservers: addresses: [ "8.8.8.8", "8.8.4.4" ]…

PKI Infographic

PKIDownload

Openssl Commands

View a certificate openssl x509 -in certificate.crt -text -noout Convert a DER file (.crt .cer .der) to PEM openssl x509 -inform…

Creating a Certificate Authority with Openssl

Create a private key with the following command. openssl genrsa -aes256 -out privkey.pem 2048 It will prompt for a pass…

Public Key Infrastructure(PKI)

Public key Infrastructure is a centralized trust model that establishes trust using certificates and certificate authorities to convey a public…