Skip to content

Commit

Permalink
Marketplace (pingcap#123)
Browse files Browse the repository at this point in the history
* marketplace deployment guide

* add charts

* install the application CRD

* use the new installer chart

* list other resources in marketplace application spec

* use per project registry repo
  • Loading branch information
gregwebs authored and tennix committed Oct 23, 2018
1 parent b4f6d68 commit 3394860
Show file tree
Hide file tree
Showing 15 changed files with 632 additions and 0 deletions.
1 change: 1 addition & 0 deletions marketplace/gcp/tidb-operator-enterprise/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM gcr.io/cloud-marketplace-tools/k8s/deployer_helm/onbuild
48 changes: 48 additions & 0 deletions marketplace/gcp/tidb-operator-enterprise/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# TODO

* agent secret
* storage class

First you can modify configuration values.

* schema.yaml: don't modify this, use parameters to override it as shown below
* chart/tidb-mp/values.yaml:
* Note that you can override any tidb-operator or tidb-cluster configuration value

TODO: review this once we have a Marketplace image published. In particular, set REPO in ./scripts/install

``` bash
# Install the k8s application CRD into your cluster
kubectl apply -f manifests/app-crd.yaml

export VERSION='v1.0.0'
export PROJECT=${PROJECT:-$(gcloud config get-value project | tr ':' '/')}
export REGISTRY="gcr.io/$PROJECT"
export APP_NAME="tidb-operator-enterprise"

docker build \
--build-arg "REGISTRY=$REGISTRY" \
--build-arg "TAG=$VERSION" \
--tag "$REGISTRY/$APP_NAME/deployer:$VERSION" .

gcloud docker -- push "$REGISTRY/$APP_NAME/deployer:$VERSION"

# We strongly recommend deploying into a new namespace
kubectl create namespace tidb
export NAMESPACE=tidb

./scripts/install
```

You can watch the deployment come up with

```
kubectl get pods -n tidb --watch
```

When the tidb containers are running, you can connect with a MySQL client.

``` bash
kubectl -n test-ns port-forward db-tidb-0 4000:4000 &
mysql -u root -P 4000 -h 127.0.0.1
```
13 changes: 13 additions & 0 deletions marketplace/gcp/tidb-operator-enterprise/chart/tidb-mp/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
description: |
Installs TiDB opertor charts in the MarketPlace
Runs privleged install steps via a serviceAccount.
Creates the tidb-cluster CRD.
Create a storage class.
name: tidb-mp
version: 0.1.0
home: https://github.com/pingcap/tidb-operator
sources:
- https://github.com/pingcap/tidb-operator
keywords:
- tidb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"name":"tidb-pd-ssd"},"parameters":{"type":"pd-ssd"},"provisioner":"kubernetes.io/gce-pd"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "release.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "release.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
spec:
descriptor:
type: TiDB
versions: '2.0'
selector:
matchExpressions:
- {key: app.kubernetes.io/name, operator: In, values: [tidb-operator, tidb-cluster, tidb-mp]}
componentKinds:
- group: apps/v1beta2
kind: Deployment
- group: apps/v1beta2
kind: StatefulSet
- group: batch/v1
kind: Job
- group: v1
kind: ConfigMap
- group: v1
kind: Service
- group: v1
kind: Secret
- group: v1
kind: PersistentVolumeClaim

metadata:
name: "{{ .Release.Name }}"
namespace: "{{ .Release.Namespace }}"
labels:
app.kubernetes.io/name: "{{ .Release.Name }}"
annotations:
marketplace.cloud.google.com/deploy-info: '{partner_id: "pingcap-public", product_id: "tidb-operator-enterprise", partner_name: "PingCAP"}'
kubernetes-engine.cloud.google.com/icon: |-
iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAA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LVAgZjQ
otLtY6lY6qoU2rVuBnkpFM4gb9iVQmmZ8lM1pbxmiQsvSbNQMFE/i8WTqz5PLPK5srB/r7ZhH82G
LbsV25BbA8Va4FMsk1hU+kFtEXtaPT3tbcUVfXIY8tJHrigMV6h5iiWX3iqFG6+/TCna1HEUSJSY
b883xzFzwSav3sg16Ad/OAW5H5WvtRg1hWZP7BH0cltZ9pvvTii2XVNvzTzIF7sP+xSnzHvvXb7n
UmrqMtsnBRIlFvt633HIP63h0d7t0O6mZpqKf3sgH98e2KypbE0huZvk7W3Dd/aqacfoT96DGE08
DO3JHVEmjOwUhpoDq1KuJlw6b0BgmU2WiwIxmcHqdneAuClfIbxqfTku1s2v9/+XX1ofG/86POh9
gvXuR7jq4yVWuMiGuV65QGnmxN9DXtpEIsiNq+U2QI+JmXW5uXWsBksKpJ49HTf/9nJFm8YFsadU
SnKiYj1NL1Pfl0uxYR+RtXd3l7urt7mxqWdn95Zih/dgw9XNGqGoWHn2PdC6LhZLfe++rQXkGvRY
FkYND5vw6YldZ/6aUfKTBDQS4D2IRnAsZg0CFIg17MxRaiRAgWgEx2LWIECBWMPOHKVGAhSIRnAs
Zg0CFIg17MxRaiRAgWgEx2LWIECBWMPOHKVGAhSIRnAsZg0CFIg17MxRaiRAgWgEx2LWIECBWMPO
HKVGAhSIRnAsZg0CFIg17MxRaiRAgWgEx2LWIECBWMPOHKVGAhSIRnAsZg0CFIg17MxRaiRAgWgE
x2LWIECBWMPOHKVGAhSIRnAsZg0CFIg17MxRaiTwb5uETb6OUnIWAAAAAElFTkSuQmCC
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{{- if .Values.storageClass.create }}
apiVersion: batch/v1
kind: Job
metadata:
name: tidb-cluster-storageclass-create
labels:
app.kubernetes.io/name: {{ template "release.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: tidb-cluster-storageclass
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
spec:
template:
metadata:
labels:
app.kubernetes.io/name: {{ template "release.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: tidb-cluster-crd
spec:
restartPolicy: OnFailure
{{- if .Values.serviceAccount }}
serviceAccount: {{ .Values.serviceAccount }}
{{- end }}
containers:
- name: kubectl
image: dtzar/helm-kubectl
command:
- "/bin/sh"
- "-c"
- echo '{{ .Files.Get "gke-storage.json" | trim }}' | kubectl apply -f -
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: batch/v1
kind: Job
metadata:
name: tidb-cluster-chart-installer
labels:
app.kubernetes.io/name: {{ template "release.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: tidb-cluster-crd
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
spec:
template:
metadata:
labels:
app.kubernetes.io/name: {{ template "release.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: tidb-chart-installer
spec:
restartPolicy: OnFailure
{{- if .Values.serviceAccount }}
serviceAccount: {{ .Values.serviceAccount }}
{{- end }}
initContainers:
- name: tidb-cluster-crd-install
image: "dtzar/helm-kubectl"
command:
- "/bin/sh"
- "-c"
- echo '{{ .Files.Get "tidb-cluster-crd.json" | trim }}' | kubectl apply -f -
containers:
- name: chart-install
image: {{ .Values.installerImage }}
imagePullPolicy: Always
volumeMounts:
- name: install-values
mountPath: /values
readOnly: true
volumes:
- name: install-values
configMap:
name: {{ .Values.clusterName }}-install-values
items:
- key: operator
path: operator.yaml
- key: cluster
path: cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.clusterName }}-install-values
labels:
app.kubernetes.io/name: {{ template "release.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: tidb-mp
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
data:
operator: |
{{ toYaml (index .Values "tidb-operator") | indent 4 }}

cluster: |
{{ toYaml (index .Values "tidb-cluster") | indent 4 }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"apiVersion":"apiextensions.k8s.io/v1beta1","kind":"CustomResourceDefinition","metadata":{"name":"tidbclusters.pingcap.com"},"spec":{"group":"pingcap.com","names":{"kind":"TidbCluster","plural":"tidbclusters","shortNames":["tc"],"singular":"tidbcluster"},"scope":"Namespaced","version":"v1alpha1"}}
64 changes: 64 additions & 0 deletions marketplace/gcp/tidb-operator-enterprise/chart/tidb-mp/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# create resources at deploy time with this serviceAccount
serviceAccount:

# installer image
installerImage:

storageClass:
create: true

clusterName: db

# operator chart
tidb-operator:
rbac:
create: true
clusterScoped: false
controllerManager:
serviceAccount: tidb-controller-manager
operatorImage:

# cluster chart
tidb-cluster:
# Assume one cluster per namespace
clusterName: db
rbac:
create: true

fullbackup:
# Need to get the backup images pushed to GCR first.
create: false
password:

monitor:
create: true
serviceAccount:
ubbagent:
image:
reportingSecret:
testSecret: true
dashboardInstaller:
image:
prometheus:
resources:
requests:
cpu: 2000m
memory: 2Gi

grafana:
resources:
requests:
cpu: 2000m
memory: 2Gi

pd:
storageClassName: tidb-pd-ssd
image:

tikv:
storageClassName: tidb-pd-ssd
image:

tidb:
storageClassName: tidb-pd-ssd
image:
Loading

0 comments on commit 3394860

Please sign in to comment.