Update images to mySQL 8.0 and Wordpress 6.2.1. This example will now work on ARM based systems (Macbook M1 chips+).

Configured database image to create the required database and a non-root user for the Wordpress site.
This commit is contained in:
J.P. Dowd 2023-06-19 11:52:11 -04:00
parent e121163d8e
commit 602b20bcf4
3 changed files with 14 additions and 3 deletions

View File

@ -50,7 +50,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:

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