Skip to content

Commit 7482c78

Browse files
authored
Merge pull request #41689 from asa3311/sync-zh-11
[zh-cn] sync wordpress-deployment mysql-deployment mysql-wordpress-persistent-volume
2 parents 0073f80 + fe86412 commit 7482c78

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

content/zh-cn/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ earlier versions of this tutorial.
9090
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
9191

9292
<!--
93-
The example shown on this page works with `kubectl` 1.14 and above.
93+
The example shown on this page works with `kubectl` 1.27 and above.
9494
9595
Download the following configuration files:
9696
9797
1. [mysql-deployment.yaml](/examples/application/wordpress/mysql-deployment.yaml)
9898
9999
1. [wordpress-deployment.yaml](/examples/application/wordpress/wordpress-deployment.yaml)
100100
-->
101-
此例在 `kubectl` 1.14 或者更高版本有效。
101+
此例在 `kubectl` 1.27 或者更高版本有效。
102102

103103
下载下面的配置文件:
104104

content/zh-cn/examples/application/wordpress/mysql-deployment.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,23 @@ spec:
4545
tier: mysql
4646
spec:
4747
containers:
48-
- image: mysql:5.6
48+
- image: mysql:8.0
4949
name: mysql
5050
env:
5151
- name: MYSQL_ROOT_PASSWORD
5252
valueFrom:
5353
secretKeyRef:
5454
name: mysql-pass
5555
key: password
56+
- name: MYSQL_DATABASE
57+
value: wordpress
58+
- name: MYSQL_USER
59+
value: wordpress
60+
- name: MYSQL_PASSWORD
61+
valueFrom:
62+
secretKeyRef:
63+
name: mysql-pass
64+
key: password
5665
ports:
5766
- containerPort: 3306
5867
name: mysql

content/zh-cn/examples/application/wordpress/wordpress-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
tier: frontend
4646
spec:
4747
containers:
48-
- image: wordpress:4.8-apache
48+
- image: wordpress:6.2.1-apache
4949
name: wordpress
5050
env:
5151
- name: WORDPRESS_DB_HOST
@@ -55,6 +55,8 @@ spec:
5555
secretKeyRef:
5656
name: mysql-pass
5757
key: password
58+
- name: WORDPRESS_DB_USER
59+
value: wordpress
5860
ports:
5961
- containerPort: 80
6062
name: wordpress

0 commit comments

Comments
 (0)