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:
parent
e121163d8e
commit
602b20bcf4
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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