-
-
Save GbengaElebs/00058c238eb9225169196b848531e218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: mysql-pv-claim | |
labels: | |
app: mysql8 | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 1Gi #1 GB | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: mysql-initdb-config | |
data: | |
initdb.sql: | | |
CREATE TABLE Usersdb.Users ( | |
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
UserName VARCHAR(30) NOT NULL, | |
Hobbies VARCHAR(30) NOT NULL, | |
Location VARCHAR(50)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment