update apiversion

Signed-off-by: yeya24 <yb532204897@gmail.com>
This commit is contained in:
yeya24
2019-12-01 09:33:11 -05:00
parent f48fe057dc
commit 56027ac757
3 changed files with 14 additions and 2 deletions

View File

@@ -14,12 +14,16 @@ spec:
port: 8080 port: 8080
targetPort: web targetPort: web
--- ---
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: example-app name: example-app
namespace: default namespace: default
spec: spec:
selector:
matchLabels:
app: example-app
version: 1.1.3
replicas: 4 replicas: 4
template: template:
metadata: metadata:

View File

@@ -14,6 +14,14 @@ rules:
- get - get
- list - list
- watch - watch
- apiGroups:
- "apps"
resources:
- deployments
verbs:
- get
- list
- watch
- apiGroups: - apiGroups:
- "extensions" - "extensions"
resources: resources:

View File

@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: metrics-server name: metrics-server