From 56027ac7570025b13186539122f7767d797470a9 Mon Sep 17 00:00:00 2001 From: yeya24 <yb532204897@gmail.com> Date: Sun, 1 Dec 2019 09:33:11 -0500 Subject: [PATCH] update apiversion Signed-off-by: yeya24 <yb532204897@gmail.com> --- examples/example-app/example-app.yaml | 6 +++++- .../metrics-server/metrics-server-cluster-role.yaml | 8 ++++++++ .../metrics-server/metrics-server-deployment.yaml | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/examples/example-app/example-app.yaml b/examples/example-app/example-app.yaml index 708e8afa..69a2ab7e 100644 --- a/examples/example-app/example-app.yaml +++ b/examples/example-app/example-app.yaml @@ -14,12 +14,16 @@ spec: port: 8080 targetPort: web --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: example-app namespace: default spec: + selector: + matchLabels: + app: example-app + version: 1.1.3 replicas: 4 template: metadata: diff --git a/experimental/metrics-server/metrics-server-cluster-role.yaml b/experimental/metrics-server/metrics-server-cluster-role.yaml index 38844d9a..f34ea8fd 100644 --- a/experimental/metrics-server/metrics-server-cluster-role.yaml +++ b/experimental/metrics-server/metrics-server-cluster-role.yaml @@ -14,6 +14,14 @@ rules: - get - list - watch +- apiGroups: + - "apps" + resources: + - deployments + verbs: + - get + - list + - watch - apiGroups: - "extensions" resources: diff --git a/experimental/metrics-server/metrics-server-deployment.yaml b/experimental/metrics-server/metrics-server-deployment.yaml index 386740da..0dbd2b2c 100644 --- a/experimental/metrics-server/metrics-server-deployment.yaml +++ b/experimental/metrics-server/metrics-server-deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: metrics-server -- GitLab