Commit 3d487547 authored by dev-chulbuji's avatar dev-chulbuji

change deployment version

Signed-off-by: 's avatardev-chulbuji <dev.chulbuji@gmail.com>
parent 9fb19967
...@@ -125,7 +125,7 @@ func Deployment(opts *Options) (*v1beta1.Deployment, error) { ...@@ -125,7 +125,7 @@ func Deployment(opts *Options) (*v1beta1.Deployment, error) {
} }
dep.TypeMeta = metav1.TypeMeta{ dep.TypeMeta = metav1.TypeMeta{
Kind: "Deployment", Kind: "Deployment",
APIVersion: "extensions/v1beta1", APIVersion: "apps/v1",
} }
return dep, nil return dep, nil
} }
......
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
# This uses a "fullname" template (see _helpers) # This uses a "fullname" template (see _helpers)
......
...@@ -280,7 +280,7 @@ helm init --override metadata.annotations."deployment\.kubernetes\.io/revision"= ...@@ -280,7 +280,7 @@ helm init --override metadata.annotations."deployment\.kubernetes\.io/revision"=
Output: Output:
``` ```
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
annotations: annotations:
...@@ -337,7 +337,7 @@ The Tiller installation is skipped and the manifest is output to stdout ...@@ -337,7 +337,7 @@ The Tiller installation is skipped and the manifest is output to stdout
in JSON format. in JSON format.
``` ```
"apiVersion": "extensions/v1beta1", "apiVersion": "apps/v1",
"kind": "Deployment", "kind": "Deployment",
"metadata": { "metadata": {
"creationTimestamp": null, "creationTimestamp": null,
......
...@@ -27,7 +27,7 @@ import ( ...@@ -27,7 +27,7 @@ import (
"time" "time"
"k8s.io/api/core/v1" "k8s.io/api/core/v1"
apiextv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" apiextv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiapps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
...@@ -700,7 +700,7 @@ spec: ...@@ -700,7 +700,7 @@ spec:
tier: backend tier: backend
role: master role: master
--- ---
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: redis-master name: redis-master
...@@ -740,7 +740,7 @@ spec: ...@@ -740,7 +740,7 @@ spec:
tier: backend tier: backend
role: slave role: slave
--- ---
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: redis-slave name: redis-slave
...@@ -780,7 +780,7 @@ spec: ...@@ -780,7 +780,7 @@ spec:
app: guestbook app: guestbook
tier: frontend tier: frontend
--- ---
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: frontend name: frontend
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment