diff --git a/CHANGES.md b/CHANGES.md index 50a2fd1d4..1aef43309 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -22,7 +22,8 @@ Notable changes between versions. * Include Grafana dashboards for Kubernetes admins * Add grafana-watcher to load bundled upstream dashboards * Update nginx-ingress from 0.9.0 to 0.10.2 -* Update CLUO from v0.5.0 to v0.6.0 +* Update CLUO from v0.5.0 to v0.6.0 +* Switch manifests to use `apps/v1` Deployments and Daemonsets #### Digital Ocean diff --git a/addons/cluo/cluster-role-binding.yaml b/addons/cluo/cluster-role-binding.yaml index e243ffd09..adf8f83b4 100644 --- a/addons/cluo/cluster-role-binding.yaml +++ b/addons/cluo/cluster-role-binding.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: reboot-coordinator roleRef: diff --git a/addons/cluo/cluster-role.yaml b/addons/cluo/cluster-role.yaml index b7afcce23..bbd86dd04 100644 --- a/addons/cluo/cluster-role.yaml +++ b/addons/cluo/cluster-role.yaml @@ -1,4 +1,4 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: reboot-coordinator diff --git a/addons/cluo/update-agent.yaml b/addons/cluo/update-agent.yaml index 3ebe292cd..12c6eefdd 100644 --- a/addons/cluo/update-agent.yaml +++ b/addons/cluo/update-agent.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: DaemonSet metadata: name: container-linux-update-agent @@ -8,6 +8,9 @@ spec: type: RollingUpdate rollingUpdate: maxUnavailable: 1 + selector: + matchLabels: + app: container-linux-update-agent template: metadata: labels: diff --git a/addons/cluo/update-operator.yaml b/addons/cluo/update-operator.yaml index 71c211643..5bb727ec3 100644 --- a/addons/cluo/update-operator.yaml +++ b/addons/cluo/update-operator.yaml @@ -1,10 +1,13 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: container-linux-update-operator namespace: reboot-coordinator spec: replicas: 1 + selector: + matchLabels: + app: container-linux-update-operator template: metadata: labels: diff --git a/addons/grafana/deployment.yaml b/addons/grafana/deployment.yaml index 3adf9ac3b..01c534049 100644 --- a/addons/grafana/deployment.yaml +++ b/addons/grafana/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: grafana diff --git a/addons/heapster/deployment.yaml b/addons/heapster/deployment.yaml index 7177628b3..e856ad0f2 100644 --- a/addons/heapster/deployment.yaml +++ b/addons/heapster/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: heapster diff --git a/addons/nginx-ingress/aws/default-backend/deployment.yaml b/addons/nginx-ingress/aws/default-backend/deployment.yaml index c08c1f465..4f5b3b8e1 100644 --- a/addons/nginx-ingress/aws/default-backend/deployment.yaml +++ b/addons/nginx-ingress/aws/default-backend/deployment.yaml @@ -1,10 +1,14 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: default-backend namespace: ingress spec: replicas: 1 + selector: + matchLabels: + name: default-backend + phase: prod template: metadata: labels: diff --git a/addons/nginx-ingress/aws/deployment.yaml b/addons/nginx-ingress/aws/deployment.yaml index 32a5f7aa7..5deaece43 100644 --- a/addons/nginx-ingress/aws/deployment.yaml +++ b/addons/nginx-ingress/aws/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: nginx-ingress-controller @@ -8,6 +8,10 @@ spec: strategy: rollingUpdate: maxUnavailable: 1 + selector: + matchLabels: + name: nginx-ingress-controller + phase: prod template: metadata: labels: diff --git a/addons/nginx-ingress/aws/rbac/cluster-role-binding.yaml b/addons/nginx-ingress/aws/rbac/cluster-role-binding.yaml index 20494d2f7..3be571092 100644 --- a/addons/nginx-ingress/aws/rbac/cluster-role-binding.yaml +++ b/addons/nginx-ingress/aws/rbac/cluster-role-binding.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: ingress roleRef: diff --git a/addons/nginx-ingress/aws/rbac/cluster-role.yaml b/addons/nginx-ingress/aws/rbac/cluster-role.yaml index 696a6920e..9fee9fde4 100644 --- a/addons/nginx-ingress/aws/rbac/cluster-role.yaml +++ b/addons/nginx-ingress/aws/rbac/cluster-role.yaml @@ -1,4 +1,4 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: ingress diff --git a/addons/nginx-ingress/aws/rbac/role-binding.yaml b/addons/nginx-ingress/aws/rbac/role-binding.yaml index ecd040492..46b5cece2 100644 --- a/addons/nginx-ingress/aws/rbac/role-binding.yaml +++ b/addons/nginx-ingress/aws/rbac/role-binding.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: ingress namespace: ingress diff --git a/addons/nginx-ingress/aws/rbac/role.yaml b/addons/nginx-ingress/aws/rbac/role.yaml index 366251aec..84a6065f9 100644 --- a/addons/nginx-ingress/aws/rbac/role.yaml +++ b/addons/nginx-ingress/aws/rbac/role.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: Role -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: ingress namespace: ingress diff --git a/addons/nginx-ingress/digital-ocean/daemonset.yaml b/addons/nginx-ingress/digital-ocean/daemonset.yaml index 6c1cbaf5e..0804430e3 100644 --- a/addons/nginx-ingress/digital-ocean/daemonset.yaml +++ b/addons/nginx-ingress/digital-ocean/daemonset.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: DaemonSet metadata: name: nginx-ingress-controller @@ -8,6 +8,10 @@ spec: type: RollingUpdate rollingUpdate: maxUnavailable: 1 + selector: + matchLabels: + name: nginx-ingress-controller + phase: prod template: metadata: labels: diff --git a/addons/nginx-ingress/digital-ocean/default-backend/deployment.yaml b/addons/nginx-ingress/digital-ocean/default-backend/deployment.yaml index c08c1f465..4f5b3b8e1 100644 --- a/addons/nginx-ingress/digital-ocean/default-backend/deployment.yaml +++ b/addons/nginx-ingress/digital-ocean/default-backend/deployment.yaml @@ -1,10 +1,14 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: default-backend namespace: ingress spec: replicas: 1 + selector: + matchLabels: + name: default-backend + phase: prod template: metadata: labels: diff --git a/addons/nginx-ingress/digital-ocean/rbac/cluster-role-binding.yaml b/addons/nginx-ingress/digital-ocean/rbac/cluster-role-binding.yaml index 20494d2f7..3be571092 100644 --- a/addons/nginx-ingress/digital-ocean/rbac/cluster-role-binding.yaml +++ b/addons/nginx-ingress/digital-ocean/rbac/cluster-role-binding.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: ingress roleRef: diff --git a/addons/nginx-ingress/digital-ocean/rbac/cluster-role.yaml b/addons/nginx-ingress/digital-ocean/rbac/cluster-role.yaml index 696a6920e..9fee9fde4 100644 --- a/addons/nginx-ingress/digital-ocean/rbac/cluster-role.yaml +++ b/addons/nginx-ingress/digital-ocean/rbac/cluster-role.yaml @@ -1,4 +1,4 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: ingress diff --git a/addons/nginx-ingress/digital-ocean/rbac/role-binding.yaml b/addons/nginx-ingress/digital-ocean/rbac/role-binding.yaml index ecd040492..46b5cece2 100644 --- a/addons/nginx-ingress/digital-ocean/rbac/role-binding.yaml +++ b/addons/nginx-ingress/digital-ocean/rbac/role-binding.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: ingress namespace: ingress diff --git a/addons/nginx-ingress/digital-ocean/rbac/role.yaml b/addons/nginx-ingress/digital-ocean/rbac/role.yaml index 366251aec..84a6065f9 100644 --- a/addons/nginx-ingress/digital-ocean/rbac/role.yaml +++ b/addons/nginx-ingress/digital-ocean/rbac/role.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: Role -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: ingress namespace: ingress diff --git a/addons/nginx-ingress/google-cloud/default-backend/deployment.yaml b/addons/nginx-ingress/google-cloud/default-backend/deployment.yaml index c08c1f465..4f5b3b8e1 100644 --- a/addons/nginx-ingress/google-cloud/default-backend/deployment.yaml +++ b/addons/nginx-ingress/google-cloud/default-backend/deployment.yaml @@ -1,10 +1,14 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: default-backend namespace: ingress spec: replicas: 1 + selector: + matchLabels: + name: default-backend + phase: prod template: metadata: labels: diff --git a/addons/nginx-ingress/google-cloud/deployment.yaml b/addons/nginx-ingress/google-cloud/deployment.yaml index 32a5f7aa7..4e6943aae 100644 --- a/addons/nginx-ingress/google-cloud/deployment.yaml +++ b/addons/nginx-ingress/google-cloud/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: nginx-ingress-controller @@ -8,6 +8,10 @@ spec: strategy: rollingUpdate: maxUnavailable: 1 + selector: + matchLabels: + name: nginx-ingess-controller + phase: prod template: metadata: labels: diff --git a/addons/nginx-ingress/google-cloud/rbac/cluster-role-binding.yaml b/addons/nginx-ingress/google-cloud/rbac/cluster-role-binding.yaml index 20494d2f7..3be571092 100644 --- a/addons/nginx-ingress/google-cloud/rbac/cluster-role-binding.yaml +++ b/addons/nginx-ingress/google-cloud/rbac/cluster-role-binding.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: ingress roleRef: diff --git a/addons/nginx-ingress/google-cloud/rbac/cluster-role.yaml b/addons/nginx-ingress/google-cloud/rbac/cluster-role.yaml index 696a6920e..9fee9fde4 100644 --- a/addons/nginx-ingress/google-cloud/rbac/cluster-role.yaml +++ b/addons/nginx-ingress/google-cloud/rbac/cluster-role.yaml @@ -1,4 +1,4 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: ingress diff --git a/addons/nginx-ingress/google-cloud/rbac/role-binding.yaml b/addons/nginx-ingress/google-cloud/rbac/role-binding.yaml index ecd040492..46b5cece2 100644 --- a/addons/nginx-ingress/google-cloud/rbac/role-binding.yaml +++ b/addons/nginx-ingress/google-cloud/rbac/role-binding.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: ingress namespace: ingress diff --git a/addons/nginx-ingress/google-cloud/rbac/role.yaml b/addons/nginx-ingress/google-cloud/rbac/role.yaml index 366251aec..84a6065f9 100644 --- a/addons/nginx-ingress/google-cloud/rbac/role.yaml +++ b/addons/nginx-ingress/google-cloud/rbac/role.yaml @@ -1,5 +1,5 @@ +apiVersion: rbac.authorization.k8s.io/v1 kind: Role -apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: ingress namespace: ingress diff --git a/addons/prometheus/deployment.yaml b/addons/prometheus/deployment.yaml index 648fcc933..2a2b7b152 100644 --- a/addons/prometheus/deployment.yaml +++ b/addons/prometheus/deployment.yaml @@ -1,13 +1,14 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: prometheus namespace: monitoring spec: replicas: 1 - strategy: - rollingUpdate: - maxUnavailable: 1 + selector: + matchLabels: + name: prometheus + phase: prod template: metadata: labels: diff --git a/addons/prometheus/exporters/kube-state-metrics/deployment.yaml b/addons/prometheus/exporters/kube-state-metrics/deployment.yaml index 118e648df..33ff72ee8 100644 --- a/addons/prometheus/exporters/kube-state-metrics/deployment.yaml +++ b/addons/prometheus/exporters/kube-state-metrics/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: kube-state-metrics diff --git a/addons/prometheus/exporters/node-exporter/daemonset.yaml b/addons/prometheus/exporters/node-exporter/daemonset.yaml index 279f37d06..5f31657b3 100644 --- a/addons/prometheus/exporters/node-exporter/daemonset.yaml +++ b/addons/prometheus/exporters/node-exporter/daemonset.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: DaemonSet metadata: name: node-exporter diff --git a/addons/prometheus/rbac/cluster-role-binding.yaml b/addons/prometheus/rbac/cluster-role-binding.yaml index db4dd2a7c..127f83a67 100644 --- a/addons/prometheus/rbac/cluster-role-binding.yaml +++ b/addons/prometheus/rbac/cluster-role-binding.yaml @@ -1,4 +1,4 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: prometheus diff --git a/addons/prometheus/rbac/cluster-role.yaml b/addons/prometheus/rbac/cluster-role.yaml index bf56d91b7..0390a92be 100644 --- a/addons/prometheus/rbac/cluster-role.yaml +++ b/addons/prometheus/rbac/cluster-role.yaml @@ -1,4 +1,4 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: prometheus