yapi
by ygqygq2
高效、易用、功能强大的 api 管理平台
About this chart
yapi - YApi是高效、易用、功能强大的 api 管理平台
Yapi是高效、易用、功能强大的 api 管理平台,旨在为开发、产品、测试人员提供更优雅的接口管理服务。可以帮助开发者轻松创建、发布、维护 API,YApi 还为用户提供了优秀的交互体验,开发人员只需利用平台提供的接口数据写入工具以及简单的点击操作就可以实现接口的管理。
Introduction
This chart bootstraps yapi deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.12+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release yapi
The command deploys yapi cluster on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
tip: The default user is: [email protected] The default password is: ymfe.org
Uninstall
To uninstall/delete the my-release deployment:
$ helm delete my-release
Configuration
The following table lists the configurable parameters of the yapi chart and their default values.
| Parameter | Description | Default |
|---|---|---|
statefulset.enabled | Use statefulset to start | false |
deploymentStrategy | Deployment rollingUpdate setting | {} |
replicaCount | Replicas number | 1 |
service | Service type, protocol, port | ClusterIP TCP 3000 |
env | Container env setting | see in values.yaml |
startCommand | Start command | [] |
config | Additional configmap to use | see in values.yaml |
secret | Additional secret to use | see in values.yaml |
image | yapi image, tag. | ygqygq2/yapi v1.8.0 |
ingress | Ingress for the yapi. | false |
mongodb | Yapi database to store data. | see in values.yaml |
persistentVolume.enabled | Create a volume to store data | false |
persistentVolume.storageClass | Type of persistent volume claim | nil |
persistentVolume.accessModes | Persistent volume access modes | [ReadWriteOnce] |
persistentVolume.size | Persistent volume access modes | 2Gi |
persistentVolume.existingClaim | Persistent volume existingClaim name | {} |
persistentVolume.mountPaths | Persistent directory path | see in values.yaml |
persistentVolume.annotations | Persistent volume annotations | {} |
healthCheck.enabled | Liveness and readiness probes | true, detail see in values.yaml |
resources | CPU/Memory resource requests/limits | {} |
deployment | Deployment annotations initContainers | {} |
extraContainers | Sidecar containers | {} |
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Persistence
The yapi image default installed yapi in /home, in values.yaml setting, stores yapi and configurations at the /yapi path of the container. Yapi stores the data to mongodb.
Deploy yapi with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has yapi on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartyapi is pinned at v2.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply