Skip to content

Commit 0073f80

Browse files
authored
Merge pull request #41686 from sperris/examples/statefulUpdate
Update Wordpress stateful example to use MySQL8 and Wordpress 6.2. Improved database setup.
2 parents 01fefcb + b1740c8 commit 0073f80

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ earlier versions of this tutorial.
5050

5151
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
5252

53-
The example shown on this page works with `kubectl` 1.14 and above.
53+
The example shown on this page works with `kubectl` 1.27 and above.
5454

5555
Download the following configuration files:
5656

content/en/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/en/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)