diff --git a/Chapter04/kubia-replicaset-matchexpressions.yaml b/Chapter04/kubia-replicaset-matchexpressions.yaml index 6e8c072..021b56a 100644 --- a/Chapter04/kubia-replicaset-matchexpressions.yaml +++ b/Chapter04/kubia-replicaset-matchexpressions.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: ReplicaSet metadata: name: kubia diff --git a/Chapter04/kubia-replicaset.yaml b/Chapter04/kubia-replicaset.yaml index 0fc9ef4..dc7cbd5 100644 --- a/Chapter04/kubia-replicaset.yaml +++ b/Chapter04/kubia-replicaset.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: ReplicaSet metadata: name: kubia diff --git a/Chapter04/ssd-monitor-daemonset.yaml b/Chapter04/ssd-monitor-daemonset.yaml index 6d742cb..70957d2 100644 --- a/Chapter04/ssd-monitor-daemonset.yaml +++ b/Chapter04/ssd-monitor-daemonset.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: DaemonSet metadata: name: ssd-monitor diff --git a/Chapter09/kubia-deployment-and-service-v1.yaml b/Chapter09/kubia-deployment-and-service-v1.yaml index f895d9a..91eb305 100644 --- a/Chapter09/kubia-deployment-and-service-v1.yaml +++ b/Chapter09/kubia-deployment-and-service-v1.yaml @@ -1,9 +1,12 @@ -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: kubia spec: replicas: 3 + selector: + matchLabels: + app: kubia template: metadata: name: kubia diff --git a/Chapter09/kubia-deployment-v2.yaml b/Chapter09/kubia-deployment-v2.yaml index 7b813bb..fcb86a5 100644 --- a/Chapter09/kubia-deployment-v2.yaml +++ b/Chapter09/kubia-deployment-v2.yaml @@ -1,8 +1,11 @@ -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: kubia spec: + selector: + matchLabels: + app: kubia template: metadata: name: kubia diff --git a/Chapter09/kubia-deployment-v3-with-readinesscheck.yaml b/Chapter09/kubia-deployment-v3-with-readinesscheck.yaml index 689d011..77562bb 100644 --- a/Chapter09/kubia-deployment-v3-with-readinesscheck.yaml +++ b/Chapter09/kubia-deployment-v3-with-readinesscheck.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: kubia @@ -10,6 +10,9 @@ spec: maxSurge: 1 maxUnavailable: 0 type: RollingUpdate + selector: + matchLabels: + app: kubia template: metadata: name: kubia diff --git a/Chapter09/kubia-deployment-v3.yaml b/Chapter09/kubia-deployment-v3.yaml index bbac9da..dc4790e 100644 --- a/Chapter09/kubia-deployment-v3.yaml +++ b/Chapter09/kubia-deployment-v3.yaml @@ -1,10 +1,13 @@ -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: kubia spec: replicas: 3 minReadySeconds: 10 + selector: + matchLabels: + app: kubia template: metadata: name: kubia diff --git a/Chapter10/kubia-statefulset-peers.yaml b/Chapter10/kubia-statefulset-peers.yaml index 8360194..2f982f5 100644 --- a/Chapter10/kubia-statefulset-peers.yaml +++ b/Chapter10/kubia-statefulset-peers.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: StatefulSet metadata: name: kubia