addons: Switch to apps/v1 workload APIs

* Deployments now belong to the apps/v1 API group
* DaemonSets now belong to the apps/v1 API group
* RBAC types now belong to the rbac.authorization.k8s.io/v1 API group
This commit is contained in:
Dalton Hubble 2018-02-10 23:51:55 -08:00
parent 82a616c70b
commit 2c10d24113
30 changed files with 65 additions and 33 deletions

View File

@ -23,6 +23,7 @@ Notable changes between versions.
* Add grafana-watcher to load bundled upstream dashboards * Add grafana-watcher to load bundled upstream dashboards
* Update nginx-ingress from 0.9.0 to 0.10.2 * 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 #### Digital Ocean

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: reboot-coordinator name: reboot-coordinator
roleRef: roleRef:

View File

@ -1,4 +1,4 @@
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: reboot-coordinator name: reboot-coordinator

View File

@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: DaemonSet kind: DaemonSet
metadata: metadata:
name: container-linux-update-agent name: container-linux-update-agent
@ -8,6 +8,9 @@ spec:
type: RollingUpdate type: RollingUpdate
rollingUpdate: rollingUpdate:
maxUnavailable: 1 maxUnavailable: 1
selector:
matchLabels:
app: container-linux-update-agent
template: template:
metadata: metadata:
labels: labels:

View File

@ -1,10 +1,13 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: container-linux-update-operator name: container-linux-update-operator
namespace: reboot-coordinator namespace: reboot-coordinator
spec: spec:
replicas: 1 replicas: 1
selector:
matchLabels:
app: container-linux-update-operator
template: template:
metadata: metadata:
labels: labels:

View File

@ -1,4 +1,4 @@
apiVersion: apps/v1beta2 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: grafana name: grafana

View File

@ -1,4 +1,4 @@
apiVersion: apps/v1beta2 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: heapster name: heapster

View File

@ -1,10 +1,14 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: default-backend name: default-backend
namespace: ingress namespace: ingress
spec: spec:
replicas: 1 replicas: 1
selector:
matchLabels:
name: default-backend
phase: prod
template: template:
metadata: metadata:
labels: labels:

View File

@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: nginx-ingress-controller name: nginx-ingress-controller
@ -8,6 +8,10 @@ spec:
strategy: strategy:
rollingUpdate: rollingUpdate:
maxUnavailable: 1 maxUnavailable: 1
selector:
matchLabels:
name: nginx-ingress-controller
phase: prod
template: template:
metadata: metadata:
labels: labels:

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: ingress name: ingress
roleRef: roleRef:

View File

@ -1,4 +1,4 @@
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: ingress name: ingress

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: ingress name: ingress
namespace: ingress namespace: ingress

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: ingress name: ingress
namespace: ingress namespace: ingress

View File

@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: DaemonSet kind: DaemonSet
metadata: metadata:
name: nginx-ingress-controller name: nginx-ingress-controller
@ -8,6 +8,10 @@ spec:
type: RollingUpdate type: RollingUpdate
rollingUpdate: rollingUpdate:
maxUnavailable: 1 maxUnavailable: 1
selector:
matchLabels:
name: nginx-ingress-controller
phase: prod
template: template:
metadata: metadata:
labels: labels:

View File

@ -1,10 +1,14 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: default-backend name: default-backend
namespace: ingress namespace: ingress
spec: spec:
replicas: 1 replicas: 1
selector:
matchLabels:
name: default-backend
phase: prod
template: template:
metadata: metadata:
labels: labels:

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: ingress name: ingress
roleRef: roleRef:

View File

@ -1,4 +1,4 @@
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: ingress name: ingress

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: ingress name: ingress
namespace: ingress namespace: ingress

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: ingress name: ingress
namespace: ingress namespace: ingress

View File

@ -1,10 +1,14 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: default-backend name: default-backend
namespace: ingress namespace: ingress
spec: spec:
replicas: 1 replicas: 1
selector:
matchLabels:
name: default-backend
phase: prod
template: template:
metadata: metadata:
labels: labels:

View File

@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: nginx-ingress-controller name: nginx-ingress-controller
@ -8,6 +8,10 @@ spec:
strategy: strategy:
rollingUpdate: rollingUpdate:
maxUnavailable: 1 maxUnavailable: 1
selector:
matchLabels:
name: nginx-ingess-controller
phase: prod
template: template:
metadata: metadata:
labels: labels:

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: ingress name: ingress
roleRef: roleRef:

View File

@ -1,4 +1,4 @@
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: ingress name: ingress

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: ingress name: ingress
namespace: ingress namespace: ingress

View File

@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:
name: ingress name: ingress
namespace: ingress namespace: ingress

View File

@ -1,13 +1,14 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: prometheus name: prometheus
namespace: monitoring namespace: monitoring
spec: spec:
replicas: 1 replicas: 1
strategy: selector:
rollingUpdate: matchLabels:
maxUnavailable: 1 name: prometheus
phase: prod
template: template:
metadata: metadata:
labels: labels:

View File

@ -1,4 +1,4 @@
apiVersion: apps/v1beta2 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: kube-state-metrics name: kube-state-metrics

View File

@ -1,4 +1,4 @@
apiVersion: apps/v1beta2 apiVersion: apps/v1
kind: DaemonSet kind: DaemonSet
metadata: metadata:
name: node-exporter name: node-exporter

View File

@ -1,4 +1,4 @@
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: prometheus name: prometheus

View File

@ -1,4 +1,4 @@
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: prometheus name: prometheus