Skip to content

Commit

Permalink
sync wordpress-deployment mysql-deployment mysql-wordpress-persistent…
Browse files Browse the repository at this point in the history
…-volume

sync wordpress-deployment mysql-deployment mysql-wordpress-persistent-volume
  • Loading branch information
asa3311 committed Jun 20, 2023
1 parent 0073f80 commit fe86412
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ 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:
1. [mysql-deployment.yaml](/examples/application/wordpress/mysql-deployment.yaml)
1. [wordpress-deployment.yaml](/examples/application/wordpress/wordpress-deployment.yaml)
-->
此例在 `kubectl` 1.14 或者更高版本有效。
此例在 `kubectl` 1.27 或者更高版本有效。

下载下面的配置文件:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,23 @@ spec:
tier: mysql
spec:
containers:
- image: mysql:5.6
- image: mysql:8.0
name: mysql
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -55,6 +55,8 @@ spec:
secretKeyRef:
name: mysql-pass
key: password
- name: WORDPRESS_DB_USER
value: wordpress
ports:
- containerPort: 80
name: wordpress
Expand Down

0 comments on commit fe86412

Please sign in to comment.