From 0ba8b9dce767b5e9446f31fc157aa10c1de4e9bc Mon Sep 17 00:00:00 2001 From: Gerasimos Tzakis Date: Fri, 10 Apr 2020 11:55:04 +0300 Subject: [PATCH 1/5] frontend-pod-affinity changing for working with newer deployment controllers versions --- Chapter16/frontend-podaffinity-host.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Chapter16/frontend-podaffinity-host.yaml b/Chapter16/frontend-podaffinity-host.yaml index 30ecb64..939cf8a 100644 --- a/Chapter16/frontend-podaffinity-host.yaml +++ b/Chapter16/frontend-podaffinity-host.yaml @@ -1,9 +1,12 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: frontend spec: replicas: 5 + selector: + matchLabels: + app: frontend template: metadata: labels: From 9fa7f39dee2396ded2e04d75599d66f2cba64593 Mon Sep 17 00:00:00 2001 From: Gerasimos Tzakis Date: Fri, 10 Apr 2020 12:10:36 +0300 Subject: [PATCH 2/5] frontend-podaffinity-preferred for working with newer versions of Deployment controllers --- Chapter16/frontend-podaffinity-preferred-host.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Chapter16/frontend-podaffinity-preferred-host.yaml b/Chapter16/frontend-podaffinity-preferred-host.yaml index ccabb72..64d4db8 100644 --- a/Chapter16/frontend-podaffinity-preferred-host.yaml +++ b/Chapter16/frontend-podaffinity-preferred-host.yaml @@ -1,9 +1,12 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: frontend spec: replicas: 5 + selector: + matchLabels: + app: frontend template: metadata: labels: From 7009fcd5b77a8674c580b393639adc6d0dd51a63 Mon Sep 17 00:00:00 2001 From: Gerasimos Tzakis Date: Fri, 10 Apr 2020 13:38:55 +0300 Subject: [PATCH 3/5] frontend-podantiaffinity for new version updated for newer versions of Deployment controllers. --- Chapter16/frontend-podantiaffinity-host.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Chapter16/frontend-podantiaffinity-host.yaml b/Chapter16/frontend-podantiaffinity-host.yaml index 1d3b3b5..145e684 100644 --- a/Chapter16/frontend-podantiaffinity-host.yaml +++ b/Chapter16/frontend-podantiaffinity-host.yaml @@ -1,9 +1,12 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: frontend spec: replicas: 5 + selector: + matchLabels: + app: frontend template: metadata: labels: From 6f4bdeb6060106a311bc99b643033e083aa8fc3a Mon Sep 17 00:00:00 2001 From: Gerasimos Tzakis Date: Mon, 13 Apr 2020 12:46:25 +0300 Subject: [PATCH 4/5] for version 1.7 --- Chapter18/website-controller.yaml | 33 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/Chapter18/website-controller.yaml b/Chapter18/website-controller.yaml index f161f7b..6a11b4a 100644 --- a/Chapter18/website-controller.yaml +++ b/Chapter18/website-controller.yaml @@ -1,18 +1,21 @@ -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: - name: website-controller + name: website-controller spec: - replicas: 1 - template: - metadata: - name: website-controller - labels: - app: website-controller - spec: - serviceAccountName: website-controller - containers: - - name: main - image: luksa/website-controller - - name: proxy - image: luksa/kubectl-proxy:1.6.2 + replicas: 1 + selector: + matchLabels: + app: website-controller + template: + metadata: + name: website-controller + labels: + app: website-controller + spec: + serviceAccountName: website-controller + containers: + - name: main + image: luksa/website-controller + - name: proxy + image: luksa/kubectl-proxy:1.6.2 From 485b622ba571a5a2b5d8b8c259c13c1ea07fbb7f Mon Sep 17 00:00:00 2001 From: Gerasimos Tzakis Date: Thu, 23 Jul 2020 19:31:15 +0300 Subject: [PATCH 5/5] added spaces --- Chapter18/website-controller.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Chapter18/website-controller.yaml b/Chapter18/website-controller.yaml index 6a11b4a..567f6f3 100644 --- a/Chapter18/website-controller.yaml +++ b/Chapter18/website-controller.yaml @@ -8,14 +8,14 @@ spec: matchLabels: app: website-controller template: - metadata: - name: website-controller - labels: - app: website-controller - spec: - serviceAccountName: website-controller - containers: - - name: main - image: luksa/website-controller - - name: proxy - image: luksa/kubectl-proxy:1.6.2 + metadata: + name: website-controller + labels: + app: website-controller + spec: + serviceAccountName: website-controller + containers: + - name: main + image: luksa/website-controller + - name: proxy + image: luksa/kubectl-proxy:1.6.2