From d983592ddca0f2cfc135562c2a9f1e0b14df329d Mon Sep 17 00:00:00 2001 From: Gerry S Date: Sun, 18 Sep 2022 13:43:09 -0400 Subject: [PATCH] Post-Friday --- k8s/nginx-2-with-volume.yaml | 6 ++-- slides/k8s/kubectl-commands.md | 51 ++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 slides/k8s/kubectl-commands.md diff --git a/k8s/nginx-2-with-volume.yaml b/k8s/nginx-2-with-volume.yaml index c7e0cfc6..e2a3468a 100644 --- a/k8s/nginx-2-with-volume.yaml +++ b/k8s/nginx-2-with-volume.yaml @@ -3,11 +3,13 @@ kind: Pod metadata: name: nginx-with-volume spec: - volumes: - - name: www containers: - name: nginx image: nginx volumeMounts: - name: www mountPath: /usr/share/nginx/html/ + + volumes: + - name: www + emptyDir: {} diff --git a/slides/k8s/kubectl-commands.md b/slides/k8s/kubectl-commands.md new file mode 100644 index 00000000..c3d0900c --- /dev/null +++ b/slides/k8s/kubectl-commands.md @@ -0,0 +1,51 @@ +## Basic Commands + run + create + get + delete + logs + explain + describe + exec + ## Modifying Objects + apply (upsert) + set + edit + patch + label + annotate + https://blog.atomist.com/kubernetes-apply-replace-patch/ + diff + replace + wait + ## NetCommands + expose + port-forward + proxy + ## Deploy Command + rollout + scale + autoscale + ## Cluster Management Commands + certificate + cluster-info + cordon + uncordon + drain + taint +## Troubleshooting and Debugging Commands + top + attach + cp + auth + debug +## Settings Commands + completion +## Other Commands + alpha + api-resources + api-versions + config + plugin + version + Please Share this API Explorer \ No newline at end of file