17 lines
408 B
YAML
17 lines
408 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: db-init
|
|
namespace: notes-app
|
|
data:
|
|
init.sql: |
|
|
CREATE TABLE IF NOT EXISTS notes (
|
|
id SERIAL PRIMARY KEY,
|
|
content TEXT NOT NULL,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
INSERT INTO notes (content) VALUES
|
|
('Welcome to the Notes App!'),
|
|
('Add, view, and delete notes using the web interface.');
|