init repo

This commit is contained in:
Sun-ZhenXing
2026-02-16 09:12:50 +08:00
commit 3360ca01a2
71 changed files with 1934 additions and 0 deletions

16
src/postgres/Makefile Normal file
View File

@@ -0,0 +1,16 @@
HELM_RELEASE_NAME ?= postgres
HELM_APPLICATION_NAME ?= postgres
HELM_NAMESPACE ?= postgres
HELM_DIR ?= ./helm
HELM_CHART_VERSION ?= 0.15.5
HELM_VALUES_FILE ?= ./values.yaml
HELM_OCI_REGISTRY ?= docker.io
HELM_OCI_NAMESPACE ?= cloudpirates
HELM_OCI_USERNAME ?=
HELM_OCI_PASSWORD ?=
HELM_REPO_NAME ?=
HELM_REPO_URL ?=
HELM_CHART_REPO ?= oci://$(HELM_OCI_REGISTRY)/$(HELM_OCI_NAMESPACE)/$(HELM_APPLICATION_NAME)
HELM_LANE ?=
include ../_template/base.mk

27
src/postgres/README.md Normal file
View File

@@ -0,0 +1,27 @@
# PostgreSQL
## Introduction
PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development.
## Installation
To install PostgreSQL, run:
```bash
make install
```
## Usage
After installation, verify the deployment:
```bash
kubectl get pods -n postgres
```
To connect to PostgreSQL:
```bash
kubectl -n postgres exec -it postgres-0 -- psql -U postgres
```

27
src/postgres/README.zh.md Normal file
View File

@@ -0,0 +1,27 @@
# PostgreSQL
## 简介
PostgreSQL 是一个强大的开源对象关系数据库系统,已有超过 35 年的活跃开发。
## 安装
要安装 PostgreSQL请运行
```bash
make install
```
## 使用
安装后,验证部署:
```bash
kubectl get pods -n postgres
```
要连接到 PostgreSQL
```bash
kubectl -n postgres exec -it postgres-0 -- psql -U postgres
```

3
src/postgres/values.yaml Normal file
View File

@@ -0,0 +1,3 @@
persistence:
enabled: true
storageClass: local-path