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: diff --git a/Chapter16/preferred-deployment.yaml b/Chapter16/preferred-deployment.yaml index a3a6275..f79a2ae 100644 --- a/Chapter16/preferred-deployment.yaml +++ b/Chapter16/preferred-deployment.yaml @@ -1,9 +1,12 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: pref spec: replicas: 5 + selector: + matchLabels: + app: pref template: metadata: labels: