k8s - uncategorized notes

Terminology SDS: Software Defined Storage CRD: Custom Resource Definition (one of kubernetes term) Text formatting of kubectl output -o json, yaml, name, file Ingerss Install nginx ingress controller (official) https://kubernetes.github.io/ingress-nginx/deploy/ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/baremetal/deploy.yaml All components are deployed in the namespace nginx-ingress. Using nodeport. It installs ingress-nginx Controller, not ingress.. https://kubernetes.github.io/ingress-nginx/deploy/baremetal/#using-a-self-provisioned-edge connetct to the controller pod like kubectl exec --stdin --tty ingress-nginx-controller-75f84dfcd7-24vl4 -n ingress-nginx -- /bin/bash. You can find the nginx process is running.


Open file with with statement with open("path/to/file", "r") as in_file blabla... Loop with index words = ["You", "are", "a", "genious", "!"] for i,word in enumerate(words): print(f"{i:{10}}{word:{12}}") Exit loop break