Skip to content

Commit fb634bb

Browse files
authored
Modify MySQL image used and password flag that changed with version 8.4 (#555)
* modify MySQL image used and password flag that changed * tweak doc
1 parent 8d2dee6 commit fb634bb

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

30-helm/pingcentral-external-mysql-db/mysql.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ metadata:
1111
name: mysql-external
1212
spec:
1313
ports:
14-
- name: https
15-
port: 3306
14+
- name: https
15+
port: 3306
1616
selector:
1717
app: mysql
1818
---
@@ -25,8 +25,8 @@ metadata:
2525
app.kubernetes.io/name: mysql
2626
spec:
2727
ports:
28-
- name: mysql
29-
port: 3306
28+
- name: mysql
29+
port: 3306
3030
clusterIP: None
3131
selector:
3232
app: mysql
@@ -52,12 +52,12 @@ spec:
5252
app.kubernetes.io/name: mysql
5353
spec:
5454
containers:
55-
- image: mysql:latest
56-
name: mysql
57-
args: ["--default-authentication-plugin=mysql_native_password"]
58-
env:
59-
- name: MYSQL_ROOT_PASSWORD
60-
value: 2Federate
61-
ports:
62-
- containerPort: 3306
63-
name: https
55+
- image: mysql:8.4
56+
name: mysql
57+
args: ["--mysql-native-password=ON"]
58+
env:
59+
- name: MYSQL_ROOT_PASSWORD
60+
value: 2Federate
61+
ports:
62+
- containerPort: 3306
63+
name: https

docs/how-to/upgradePingCentral.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ select * from DATABASECHANGELOG;
165165
kubectl cp demo-pingcentral-6d4bb97c98-m7vwb:/opt/out/instance/conf/pingcentral.jwk ${HOME}/projects/test-server-profiles/baseline/pingcentral/external-mysql-db/instance/conf/pingcentral.jwk
166166
```
167167
168-
1. Check to see that the `pingcentral.jwk` file has been updated in your server-profile and push these changes to your repository.
168+
1. Check to see that the `pingcentral.jwk` file has been placed in your server-profile and push these changes to your repository.
169169
170170
```sh
171171
cd "${HOME}/projects/test-server-profiles"
@@ -178,6 +178,8 @@ select * from DATABASECHANGELOG;
178178
The pod name from which you copy will vary.
179179
!!! note "JWK Unique to PingCentral Instance"
180180
The `pingcentral.jwk` file is used to encrypt and decrypt the PingCentral configuration. It is unique to each PingCentral instance and must be copied to the new server profile. Otherwise, the new pod will fail to start.
181+
!!! note "File copy error"
182+
If you receive an notification `tar: removing leading '/' from member names` when copying the file, it can be ignored.
181183
!!! warning "Security Warning"
182184
Storing the `pingcentral.jwk` file in the server profile **is not recommended** for production environments. In a production environment, you would likely use a managed key store service, vault, or other encrypted mechanism.
183185

0 commit comments

Comments
 (0)