Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added plugins/.DS_Store
Binary file not shown.
14 changes: 14 additions & 0 deletions plugins/tidb-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v2
name: tidb-operator
dependencies:
- name: common
repository: file://../common
version: 1.x.x
description: 一个tidb-operator的插件
type: application
version: 1.5.1
appVersion: 1.5.1
annotations:
plugins.kubegems.io/is-plugin: "true"
plugins.kubegems.io/install-namespace: tidb-operator
plugins.kubegems.io/category: kubernetes/存储插件
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plugins.kubegems.io/category: operator控制器/database

22 changes: 22 additions & 0 deletions plugins/tidb-operator/templates/tidb-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: plugins.kubegems.io/v1beta1
kind: Plugin
metadata:
name: tidb-operator
namespace: tidb-operator
spec:
kind: helm
url: https://charts.pingcap.org
chart: tidb-operator
version: "{{ .Chart.AppVersion }}"
values:
namespace: "{{ .Release.Namespace }}"
tidbCluster:
replicas: "{{ .Values.replicaCount }}"
version: "{{ .Values.tidbVersion }}"
resources:
requests:
cpu: "{{ .Values.cpuRequest }}"
memory: "{{ .Values.memoryRequest }}"
limits:
cpu: "{{ .Values.cpuLimit }}"
memory: "{{ .Values.memoryLimit }}"
25 changes: 25 additions & 0 deletions plugins/tidb-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
global:
imageRegistry: ""
imageRepository: ""
clusterName: ""
storageClass: ""
runtime: ""

metadata:
name: tidb-operator
namespace: tidb-operator

tidbCluster:
replicas: 3
version: "v1.5.1"

resources:
requests:
cpu: "500m"
memory: "2Gi"
limits:
cpu: "2"
memory: "2Gi"
persistence:
enabled: true
size: 5Gi