mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 12:18:57 +00:00
migrate Deploymnet from apps/v1beta2 to apps/v1
This commit is contained in:
@@ -148,7 +148,7 @@ The staging customization adds a configMap.
|
|||||||
> ```
|
> ```
|
||||||
as well as 2 replica
|
as well as 2 replica
|
||||||
> ```cat $OVERLAYS/staging/deployment.yaml
|
> ```cat $OVERLAYS/staging/deployment.yaml
|
||||||
> apiVersion: apps/v1beta2
|
> apiVersion: apps/v1
|
||||||
> kind: Deployment
|
> kind: Deployment
|
||||||
> metadata:
|
> metadata:
|
||||||
> name: ldap
|
> name: ldap
|
||||||
@@ -167,7 +167,7 @@ curl -s -o "$OVERLAYS/production/#1" "$CONTENT/overlays/production\
|
|||||||
|
|
||||||
The production customization adds 6 replica as well as a consistent disk.
|
The production customization adds 6 replica as well as a consistent disk.
|
||||||
> ```cat $OVERLAYS/production/deployment.yaml
|
> ```cat $OVERLAYS/production/deployment.yaml
|
||||||
> apiVersion: apps/v1beta2
|
> apiVersion: apps/v1
|
||||||
> kind: Deployment
|
> kind: Deployment
|
||||||
> metadata:
|
> metadata:
|
||||||
> name: ldap
|
> name: ldap
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1beta2
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: ldap
|
name: ldap
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1beta2
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: ldap
|
name: ldap
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
apiVersion: apps/v1beta2
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: ldap
|
name: ldap
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ The output should contain:
|
|||||||
> spec:
|
> spec:
|
||||||
> ....
|
> ....
|
||||||
> ---
|
> ---
|
||||||
> apiVersion: apps/v1beta2
|
> apiVersion: apps/v1
|
||||||
> kind: Deployment
|
> kind: Deployment
|
||||||
> metadata:
|
> metadata:
|
||||||
> ....
|
> ....
|
||||||
@@ -156,7 +156,7 @@ resources.
|
|||||||
<!-- @createPatchFile @testAgainstLatestRelease -->
|
<!-- @createPatchFile @testAgainstLatestRelease -->
|
||||||
```
|
```
|
||||||
cat <<'EOF' > $DEMO_HOME/persistent-disk.yaml
|
cat <<'EOF' > $DEMO_HOME/persistent-disk.yaml
|
||||||
apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2
|
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: mysql
|
name: mysql
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2
|
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: mysql
|
name: mysql
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ steps. Add an environment variable through the patch and add a file to the confi
|
|||||||
<!-- @customizeConfigMap @testAgainstLatestRelease -->
|
<!-- @customizeConfigMap @testAgainstLatestRelease -->
|
||||||
```
|
```
|
||||||
cat <<EOF >$DEMO_HOME/patch.yaml
|
cat <<EOF >$DEMO_HOME/patch.yaml
|
||||||
apiVersion: apps/v1beta2
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: sbdemo
|
name: sbdemo
|
||||||
@@ -216,7 +216,7 @@ cat $DEMO_HOME/memorylimit_patch.yaml
|
|||||||
The output contains
|
The output contains
|
||||||
|
|
||||||
> ```
|
> ```
|
||||||
> apiVersion: apps/v1beta2
|
> apiVersion: apps/v1
|
||||||
> kind: Deployment
|
> kind: Deployment
|
||||||
> metadata:
|
> metadata:
|
||||||
> name: sbdemo
|
> name: sbdemo
|
||||||
@@ -254,7 +254,7 @@ cat $DEMO_HOME/healthcheck_patch.yaml
|
|||||||
The output contains
|
The output contains
|
||||||
|
|
||||||
> ```
|
> ```
|
||||||
> apiVersion: apps/v1beta2
|
> apiVersion: apps/v1
|
||||||
> kind: Deployment
|
> kind: Deployment
|
||||||
> metadata:
|
> metadata:
|
||||||
> name: sbdemo
|
> name: sbdemo
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1beta2
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: sbdemo
|
name: sbdemo
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1beta2
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: sbdemo
|
name: sbdemo
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1beta2
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: sbdemo
|
name: sbdemo
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ curl -s -o "$DEMO_HOME/#1.yaml" \
|
|||||||
```
|
```
|
||||||
The patch has following content
|
The patch has following content
|
||||||
> ```
|
> ```
|
||||||
> apiVersion: apps/v1beta2
|
> apiVersion: apps/v1
|
||||||
> kind: Deployment
|
> kind: Deployment
|
||||||
> metadata:
|
> metadata:
|
||||||
> name: wordpress
|
> name: wordpress
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2
|
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: mysql
|
name: mysql
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1beta2
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: wordpress
|
name: wordpress
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2
|
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: wordpress
|
name: wordpress
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ curl -s -o "$DEMO_HOME/#1.yaml" \
|
|||||||
```
|
```
|
||||||
该 patch 内容如下:
|
该 patch 内容如下:
|
||||||
> ```yaml
|
> ```yaml
|
||||||
> apiVersion: apps/v1beta2
|
> apiVersion: apps/v1
|
||||||
> kind: Deployment
|
> kind: Deployment
|
||||||
> metadata:
|
> metadata:
|
||||||
> name: wordpress
|
> name: wordpress
|
||||||
|
|||||||
Reference in New Issue
Block a user