From d72795e16020f1ccc570d63a4215b7ba9f01e0b0 Mon Sep 17 00:00:00 2001 From: Sergei Grebnov Date: Mon, 21 Oct 2024 16:01:33 -0700 Subject: [PATCH] Improve kubernetes quickstart (#214) * Improve kubernetes quickstart * Update README.md --- kubernetes/README.md | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/kubernetes/README.md b/kubernetes/README.md index dd515b7..36f637c 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -33,10 +33,74 @@ kubectl exec -it deploy/spiceai -- spiced --repl ```sql 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 | +| spice | public | taxi_trips | BASE TABLE | ++---------------+--------------+---------------+------------+ +``` + +```sql describe taxi_trips; +``` + +```sql ++-----------------------+------------------------------+-------------+ +| column_name | data_type | is_nullable | ++-----------------------+------------------------------+-------------+ +| VendorID | Int32 | YES | +| tpep_pickup_datetime | Timestamp(Microsecond, None) | YES | +| tpep_dropoff_datetime | Timestamp(Microsecond, None) | YES | +| passenger_count | Int64 | YES | +| trip_distance | Float64 | YES | +| RatecodeID | Int64 | YES | +| store_and_fwd_flag | Utf8 | YES | +| PULocationID | Int32 | YES | +| DOLocationID | Int32 | YES | +| payment_type | Int64 | YES | +| fare_amount | Float64 | YES | +| extra | Float64 | YES | +| mta_tax | Float64 | YES | +| tip_amount | Float64 | YES | +| tolls_amount | Float64 | YES | +| improvement_surcharge | Float64 | YES | +| total_amount | Float64 | YES | +| congestion_surcharge | Float64 | YES | +| Airport_fee | Float64 | YES | ++-----------------------+------------------------------+-------------+ + +Time: 0.006071083 seconds. 19 rows. +``` + +```sql select * from taxi_trips limit 10; ``` +```sql ++----------+----------------------+-----------------------+-----------------+---------------+------------+--------------------+--------------+--------------+--------------+-------------+-------+---------+------------+--------------+-----------------------+--------------+----------------------+-------------+ +| VendorID | tpep_pickup_datetime | tpep_dropoff_datetime | passenger_count | trip_distance | RatecodeID | store_and_fwd_flag | PULocationID | DOLocationID | payment_type | fare_amount | extra | mta_tax | tip_amount | tolls_amount | improvement_surcharge | total_amount | congestion_surcharge | Airport_fee | ++----------+----------------------+-----------------------+-----------------+---------------+------------+--------------------+--------------+--------------+--------------+-------------+-------+---------+------------+--------------+-----------------------+--------------+----------------------+-------------+ +| 1 | 2024-01-24T20:40:32 | 2024-01-24T20:53:05 | | 2.3 | | | 236 | 230 | 0 | 14.9 | 1.0 | 0.5 | 3.98 | 0.0 | 1.0 | 23.88 | | | +| 2 | 2024-01-24T20:35:35 | 2024-01-24T20:55:24 | | 2.37 | | | 162 | 68 | 0 | 16.88 | 0.0 | 0.5 | 0.0 | 0.0 | 1.0 | 20.88 | | | +| 1 | 2024-01-24T20:28:26 | 2024-01-24T20:40:36 | | 0.0 | | | 229 | 186 | 0 | 13.8 | 0.0 | 0.5 | 0.0 | 0.0 | 1.0 | 17.8 | | | +| 1 | 2024-01-24T20:10:04 | 2024-01-24T20:21:48 | | 0.0 | | | 161 | 141 | 0 | 10.04 | 0.0 | 0.5 | 0.0 | 0.0 | 1.0 | 14.04 | | | +| 2 | 2024-01-24T20:11:41 | 2024-01-24T20:20:52 | | 1.25 | | | 162 | 186 | 0 | 13.69 | 0.0 | 0.5 | 0.0 | 0.0 | 1.0 | 17.69 | | | +| 2 | 2024-01-24T20:03:00 | 2024-01-24T20:32:00 | | 9.95 | | | 263 | 97 | 0 | 44.8 | 0.0 | 0.5 | 4.88 | 0.0 | 1.0 | 53.68 | | | +| 1 | 2024-01-24T20:22:08 | 2024-01-24T20:25:22 | | 0.4 | | | 239 | 142 | 0 | 5.1 | 1.0 | 0.5 | 1.01 | 0.0 | 1.0 | 11.11 | | | +| 2 | 2024-01-24T20:36:08 | 2024-01-24T20:49:33 | | 2.51 | | | 161 | 262 | 0 | 13.9 | 0.0 | 0.5 | 0.0 | 0.0 | 1.0 | 17.9 | | | +| 2 | 2024-01-24T20:06:35 | 2024-01-24T20:21:08 | | 3.94 | | | 236 | 137 | 0 | 19.08 | 0.0 | 0.5 | 0.0 | 0.0 | 1.0 | 23.08 | | | +| 2 | 2024-01-24T20:24:33 | 2024-01-24T20:42:50 | | 2.88 | | | 231 | 107 | 0 | 16.92 | 0.0 | 0.5 | 0.0 | 0.0 | 1.0 | 20.92 | | | ++----------+----------------------+-----------------------+-----------------+---------------+------------+--------------------+--------------+--------------+--------------+-------------+-------+---------+------------+--------------+-----------------------+--------------+----------------------+-------------+ + +Time: 0.01968175 seconds. 10 rows. +``` + **Step 6.** Create a `values.yaml` file to configure the Spice deployment: ```bash