Upgrade mysql image version used by Single-Instance Stateful tutorial

fix yml

fox version
pull/50991/head
lmieulet 2025-05-07 11:35:23 +02:00 committed by Léo MIEULET
parent 245d2a2db9
commit 1ea9ecf3ad
2 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ for a secure solution.
Labels: app=mysql
Containers:
mysql:
Image: mysql:5.6
Image: mysql:9
Port: 3306/TCP
Environment:
MYSQL_ROOT_PASSWORD: password
@ -146,7 +146,7 @@ behind a Service and you don't intend to increase the number of Pods.
Run a MySQL client to connect to the server:
```shell
kubectl run -it --rm --image=mysql:5.6 --restart=Never mysql-client -- mysql -h mysql -ppassword
kubectl run -it --rm --image=mysql:9 --restart=Never mysql-client -- mysql -h mysql -ppassword
```
This command creates a new Pod in the cluster running a MySQL client

View File

@ -25,7 +25,7 @@ spec:
app: mysql
spec:
containers:
- image: mysql:5.6
- image: mysql:9
name: mysql
env:
# Use secret in real usage