sync wordpress-deployment mysql-deployment mysql-wordpress-persistent-volume

sync wordpress-deployment mysql-deployment mysql-wordpress-persistent-volume
This commit is contained in:
xin gu 2023-06-20 12:12:30 +08:00
parent 0073f80c2c
commit fe86412ea0
3 changed files with 15 additions and 4 deletions

View File

@ -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 或者更高版本有效。
下载下面的配置文件:

View File

@ -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

View File

@ -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