From f459c85b7b4df6b1e5f0daacd04f9d8301700b4d Mon Sep 17 00:00:00 2001 From: Luc FASQUELLE Date: Tue, 23 Nov 2021 15:56:07 +0100 Subject: [PATCH 1/2] Fix typo in rs-example sample and deploy-example name --- workloads/README.md | 4 ++-- workloads/manifests/deploy-example.yaml | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/workloads/README.md b/workloads/README.md index be4b5ae..7b0362f 100644 --- a/workloads/README.md +++ b/workloads/README.md @@ -54,7 +54,7 @@ configure the labels and selectors to target `app=nginx` and `env=prod`. The yam apiVersion: apps/v1 kind: ReplicaSet metadata: - name: example-rs + name: rs-example spec: replicas: 3 selector: @@ -183,7 +183,7 @@ and Pod. `manifests/deploy-example.yaml`. Additionally pass the `--record` flag to `kubectl` when you create the Deployment. The `--record` flag saves the command as an annotation, and it can be thought of similar to a git commit message. -**manifests/deployment-example.yaml** +**manifests/deploy-example.yaml** ```yaml apiVersion: apps/v1 kind: Deployment diff --git a/workloads/manifests/deploy-example.yaml b/workloads/manifests/deploy-example.yaml index e1cb636..5bfe422 100644 --- a/workloads/manifests/deploy-example.yaml +++ b/workloads/manifests/deploy-example.yaml @@ -23,5 +23,3 @@ spec: image: nginx:stable-alpine ports: - containerPort: 80 - - From 21c5f4816b43c253ffc2b3124ad16b6ffc180101 Mon Sep 17 00:00:00 2001 From: Luc FASQUELLE Date: Tue, 23 Nov 2021 16:04:26 +0100 Subject: [PATCH 2/2] Fix storage readmy diff with manifests --- storage/README.md | 7 ++++--- storage/manifests/pvc-selector-example.yaml | 2 +- storage/manifests/volume-example.yaml | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/storage/README.md b/storage/README.md index bb00c18..285616c 100644 --- a/storage/README.md +++ b/storage/README.md @@ -195,11 +195,11 @@ spec: storage: 2Gi accessModes: - ReadWriteMany - persistentVolumeReclaimPolicy: Delete storageClassName: mypvsc + persistentVolumeReclaimPolicy: Delete hostPath: type: DirectoryOrCreate - path: "/data/mypvsc" + path: "/tmp/mypvsc" ``` **Command** @@ -263,9 +263,10 @@ spec: storage: 2Gi accessModes: - ReadWriteMany + persistentVolumeReclaimPolicy: Retain hostPath: type: DirectoryOrCreate - path: "/data/mypvselector" + path: "/tmp/mypvselector" ``` **Command** diff --git a/storage/manifests/pvc-selector-example.yaml b/storage/manifests/pvc-selector-example.yaml index 1c7c5cf..a0e5799 100644 --- a/storage/manifests/pvc-selector-example.yaml +++ b/storage/manifests/pvc-selector-example.yaml @@ -1,5 +1,5 @@ -kind: PersistentVolumeClaim apiVersion: v1 +kind: PersistentVolumeClaim metadata: name: pvc-selector-example spec: diff --git a/storage/manifests/volume-example.yaml b/storage/manifests/volume-example.yaml index 6c7210a..3c36349 100644 --- a/storage/manifests/volume-example.yaml +++ b/storage/manifests/volume-example.yaml @@ -26,4 +26,3 @@ spec: volumes: - name: html emptyDir: {} -