$ sudo kubectl get pod
vchord-1 1/1 Running 0 42s
$ kubectl cnpg status vchord
Cluster Summary
Name: vchord
Namespace: default
System ID: 7527554386501582867PostgreSQL Image: ghcr.io/tensorchord/cloudnative-vectorchord:17
Primary instance: vchord-1
Primary start time: 2025-07-16 05:55:51 +0000 UTC (uptime 53s)Status: Cluster in healthy state
Instances: 1Ready instances: 1Current Write LSN: 0/204FB50 (Timeline: 1 - WAL File: 000000010000000000000002)Certificates Status
Certificate Name Expiration Date Days Left Until Expiration
---------------- --------------- --------------------------
vchord-ca 2025-10-14 05:50:08 +0000 UTC 90.00
vchord-replication 2025-10-14 05:50:08 +0000 UTC 90.00
vchord-server 2025-10-14 05:50:08 +0000 UTC 90.00
Continuous Backup status
Not configured
Physical backups
No running physical backups found
Streaming Replication status
Not configured
Unmanaged Replication Slot Status
No unmanaged replication slots found
Managed roles status
No roles managed
Tablespaces status
No managed tablespaces
Instances status
Name Database Size Current LSN Replication role Status QoS Manager Version Node
---- ------------- ----------- ---------------- ------ --- --------------- ----
vchord-1 0/204FB50 Primary OK BestEffort 1.25.0 ip-10-0-2-29.ec2.internal
$ kubectl port-forward services/vchord-rw 5432:5432
$ psql -h 127.0.0.1 -d tensorchord -U tensorchord
tensorchord=> \dx
List of installed extensions
Name | Version | Schema | Description
---------+---------+------------+---------------------------------------------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
vchord | 1.1.1 | public | vchord: Vector database plugin for Postgres, written in Rust, specifically designed for LLM
vector | 0.8.1 | public | vector data type and ivfflat and hnsw access methods
(3 rows)
apiVersion:v1kind:Secretmetadata:name:tensorchordtype:kubernetes.io/basic-authdata:password:dGVuc29yY2hvcmQ=# tensorchord username:dGVuc29yY2hvcmQ=# tensorchord---apiVersion:postgresql.cnpg.io/v1kind:Clustermetadata:name:vchord spec:instances:1imageName:ghcr.io/cloudnative-pg/postgresql:18-system-bookwormbootstrap:initdb:database:tensorchordpostInitApplicationSQL:- CREATE EXTENSION IF NOT EXISTS vchord CASCADE;owner:tensorchordsecret:name:tensorchorddataChecksums:trueencoding:'UTF8'storage:size:1Gipostgresql:extensions:- name:vchordimage:reference:ghcr.io/tensorchord/vchord-scratch:pg18-v1.1.1dynamic_library_path:- /usr/lib/postgresql/18/lib/extension_control_path:- /usr/share/postgresql/18/shared_preload_libraries:- "vchord"
接下来,我们可以验证扩展是否已成功安装:
$ kubectl port-forward services/vchord-rw 5432:5432
$ psql -h
$ psql -h 0.0.0.0 -U tensorchord -d tensorchord
Password for user tensorchord:
psql (13.3 (Ubuntu 13.3-1.pgdg16.04+1), server 18.0 (Debian 18.0-1.pgdg12+3))WARNING: psql major version 13, server major version 18.
Some psql features might not work.
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)Type "help"for help.
tensorchord=> \dx
List of installed extensions
Name | Version | Schema | Description
---------+---------+------------+---------------------------------------------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
vchord | 1.1.1 | public | vchord: Vector database plugin for Postgres, written in Rust, specifically designed for LLM
vector | 0.8.1 | public | vector data type and ivfflat and hnsw access methods
(3 rows)