Skip to content

Commit

Permalink
k8 helm chart doesn't have defaults datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeadie committed Oct 23, 2024
1 parent d72795e commit 67ced82
Showing 1 changed file with 49 additions and 26 deletions.
75 changes: 49 additions & 26 deletions kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,55 @@ kubectl exec -it deploy/spiceai -- spiced --repl
show tables;
```

```sql
+---------------+--------------+---------------+------------+
| table_catalog | table_schema | table_name | table_type |
+---------------+--------------+---------------+------------+
| spice | runtime | query_history | BASE TABLE |
| spice | runtime | metrics | BASE TABLE |
| spice | runtime | task_history | BASE TABLE |
+---------------+--------------+---------------+------------+
```


**Step 6.** Create a `values.yaml` file to configure the Spice deployment:

```bash
cat <<EOF > values.yaml
spicepod:
name: app
version: v1beta1
kind: Spicepod
datasets:
- from: s3://spiceai-demo-datasets/taxi_trips/2024/
name: taxi_trips_customized
description: Demo taxi trips in s3
params:
file_format: parquet
acceleration:
enabled: true
EOF
```

**Step 7.** Update the Spice deployment with the new configuration:

```bash
helm upgrade spiceai spiceai/spiceai -f values.yaml
```

**Step 8.** Rerun the Spice SQL REPL

```bash
kubectl exec -it deploy/spiceai -- spiced --repl
```

**Step 9.** Run these queries in the Spice SQL REPL:

```sql
show tables;
```

```sql
+---------------+--------------+---------------+------------+
| table_catalog | table_schema | table_name | table_type |
Expand Down Expand Up @@ -101,32 +150,6 @@ select * from taxi_trips limit 10;
Time: 0.01968175 seconds. 10 rows.
```

**Step 6.** Create a `values.yaml` file to configure the Spice deployment:

```bash
cat <<EOF > values.yaml
spicepod:
name: app
version: v1beta1
kind: Spicepod
datasets:
- from: s3://spiceai-demo-datasets/taxi_trips/2024/
name: taxi_trips_customized
description: Demo taxi trips in s3
params:
file_format: parquet
acceleration:
enabled: true
EOF
```

**Step 7.** Update the Spice deployment with the new configuration:

```bash
helm upgrade spiceai spiceai/spiceai -f values.yaml
```

## Clean up

Uninstall the Spice Helm chart:
Expand Down

0 comments on commit 67ced82

Please sign in to comment.