Cheat Sheets - Kubernetes / by Tacuma Solomon

Listing kubernetes Node:

kubectl get nodes

Describing a Kubernetes Node:

kubectl describe node

Listing kubernetesPods:

kubectl get pods -n influencers-workflows

Describing a KubernetesPod:

kubectl describe pod -n influencers-workflows lexis-nexis-matching-10872-142f2992

Getting a namespace:

kubectl get namespace

Viewing PODs and Nodes:

https://kubernetes.io/docs/tutorials/kubernetes-basics/explore/explore-intro/

Sample code for assigning volumes and volume mounts:

https://airflow.apache.org/kubernetes.html

What is a persistent Volume:

https://kubernetes.io/docs/concepts/storage/persistent-volumes/

Creating a Persistent Volume Claim for Kubernetes:

https://kubernetes.io/docs/concepts/storage/persistent-volumes/#create-persistent-volume-claim-from-volume-snapshot

https://kubernetes.io/docs/concepts/storage/persistent-volumes/#volume-snapshot-and-restore-volume-from-snapshot-support

Overview of KubeCtl

https://kubernetes.io/docs/reference/kubectl/overview/

Configuring a Volume for a POD:

https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/#configure-a-volume-for-a-pod

KubeCtl Reference Docs

https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply

Types of Storage Classes that we have:

Commands: with-aws-mfa kubectl get storageclasses

efs - What we have

We’re setting up a persistent EFS volume:

Make sure to change the link to ReadWriteMany with ifs

Mounting a simple directory in Kubernetes

https://priyankvex.wordpress.com/2017/12/24/basics-of-kubernetes-volume-management-mounting-a-simple-hostpath-directory/

More on Persistent Volumes

https://akomljen.com/kubernetes-persistent-volumes-with-deployment-and-statefulset/

Basic shit on deploying application to Kubernetes:

https://travix.io/deploying-your-application-to-kubernetes-2abaee6db222

Using ConfigMap:

https://carlos.mendible.com/2019/02/10/kubernetes-mount-file-pod-with-configmap/

Kubernetes_New.png