Merge pull request #41689 from asa3311/sync-zh-11
[zh-cn] sync wordpress-deployment mysql-deployment mysql-wordpress-persistent-volumepull/41691/head
commit
7482c7843b
|
@ -90,7 +90,7 @@ earlier versions of this tutorial.
|
|||
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
|
||||
|
||||
<!--
|
||||
The example shown on this page works with `kubectl` 1.14 and above.
|
||||
The example shown on this page works with `kubectl` 1.27 and above.
|
||||
|
||||
Download the following configuration files:
|
||||
|
||||
|
@ -98,7 +98,7 @@ Download the following configuration files:
|
|||
|
||||
1. [wordpress-deployment.yaml](/examples/application/wordpress/wordpress-deployment.yaml)
|
||||
-->
|
||||
此例在 `kubectl` 1.14 或者更高版本有效。
|
||||
此例在 `kubectl` 1.27 或者更高版本有效。
|
||||
|
||||
下载下面的配置文件:
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ spec:
|
|||
tier: mysql
|
||||
spec:
|
||||
containers:
|
||||
- image: mysql:5.6
|
||||
- image: mysql:8.0
|
||||
name: mysql
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
|
@ -53,6 +53,15 @@ spec:
|
|||
secretKeyRef:
|
||||
name: mysql-pass
|
||||
key: password
|
||||
- name: MYSQL_DATABASE
|
||||
value: wordpress
|
||||
- name: MYSQL_USER
|
||||
value: wordpress
|
||||
- name: MYSQL_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mysql-pass
|
||||
key: password
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
name: mysql
|
||||
|
|
|
@ -45,7 +45,7 @@ spec:
|
|||
tier: frontend
|
||||
spec:
|
||||
containers:
|
||||
- image: wordpress:4.8-apache
|
||||
- image: wordpress:6.2.1-apache
|
||||
name: wordpress
|
||||
env:
|
||||
- name: WORDPRESS_DB_HOST
|
||||
|
@ -55,6 +55,8 @@ spec:
|
|||
secretKeyRef:
|
||||
name: mysql-pass
|
||||
key: password
|
||||
- name: WORDPRESS_DB_USER
|
||||
value: wordpress
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: wordpress
|
||||
|
|
Loading…
Reference in New Issue