Skip to content

Commit 97ed47f

Browse files
authored
Merge pull request apache#379 from intelligentfu8/dis_helm
helm operator add ddc
2 parents 2b1223d + dc189b7 commit 97ed47f

File tree

10 files changed

+54
-237
lines changed

10 files changed

+54
-237
lines changed

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,11 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
7373
$(CONTROLLER_GEN) rbac:roleName=manager-doris crd:generateEmbeddedObjectMeta=true webhook paths="./api/doris/..." output:crd:artifacts:config=config/crd/bases
7474
$(CONTROLLER_GEN) rbac:roleName=manager-doris crd:generateEmbeddedObjectMeta=true webhook paths="./api/doris/..." output:crd:artifacts:config=helm-charts/doris-operator/crds
7575
$(CONTROLLER_GEN) rbac:roleName=manager-doris crd:generateEmbeddedObjectMeta=true webhook paths="./api/disaggregated/..." output:crd:artifacts:config=config/crd/bases
76-
#cat config/crd/bases/apps.foundationdb.org_foundationdbclusters.yaml > config/crd/bases/crds.yaml
77-
#cat config/crd/bases/apps.foundationdb.org_foundationdbbackups.yaml >> config/crd/bases/crds.yaml
78-
#cat config/crd/bases/apps.foundationdb.org_foundationdbrestores.yaml >> config/crd/bases/crds.yaml
7976
cp config/crd/bases/doris.selectdb.com_dorisclusters.yaml config/crd/bases/doris.apache.com_dorisclusters.yaml
8077
mv helm-charts/doris-operator/crds/doris.selectdb.com_dorisclusters.yaml helm-charts/doris-operator/crds/doris.apache.com_dorisclusters.yaml
8178
cat config/crd/bases/doris.selectdb.com_dorisclusters.yaml > config/crd/bases/crds.yaml
8279
cat config/crd/bases/disaggregated.cluster.doris.com_dorisdisaggregatedclusters.yaml >> config/crd/bases/crds.yaml
8380

84-
8581
.PHONY: generate
8682
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
8783
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./api/doris/..."

helm-charts/doris-operator/Chart.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
apiVersion: v2
1919
name: doris-operator
2020
description: >
21-
Kubernetes operator for creating, configuring and managing Doris clusters (dcr) and Doris disaggregated clusters
22-
(ddc). It can deploy and manage all components for Doris clusters: meta service, fe, be, cn, compute group, and
23-
broker.
21+
Doris Operator for creating, configuring and managing Doris clusters (dcr) and Doris disaggregated clusters (ddc).
2422
2523
icon: https://charts.selectdb.com/images/doris.jpg
2624

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Deploy Doris-Operator by Helm-Chart
22

3-
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/doris)](https://artifacthub.io/packages/search?repo=doris)
3+
[![Doris repo](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/doris)](https://github.com/apache/doris)
4+
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?color=f5deb3)](https://www.apache.org/licenses/LICENSE-2.0.html)
5+
[![Operator Release](https://img.shields.io/github/v/release/apache/doris-operator?color=00FFFF)](https://github.com/apache/doris-operator/releases)
6+
[![Tags](https://img.shields.io/github/v/tag/apache/doris-operator?label=latest%20tag&color=00FF7F)](https://github.com/apache/doris-operator/tags)
7+
[![docker pull](https://img.shields.io/docker/pulls/apache/doris?color=1E90FF&logo=docker)](https://img.shields.io/docker/pulls/apache/doris)
8+
[![issues](https://img.shields.io/github/issues-search?query=repo%3Aapache%2Fdoris-operator%20is%3Aopen&color=AFEEEE&label=issues)](https://github.com/apache/doris-operator/issues)
9+
[![Go Version](https://img.shields.io/github/go-mod/go-version/apache/doris-operator?color=00FFFF)](https://img.shields.io/github/go-mod/go-version/apache/doris-operator)
10+
[![docs](https://img.shields.io/website?url=https%3A%2F%2Fdoris.apache.org%2Fdocs%2Finstall%2Fdeploy-on-kubernetes%2Finstall-config-cluster&label=docs&color=7FFF00)](https://doris.apache.org/docs/install/deploy-on-kubernetes/install-config-cluster)
411

512
Doris-Operator is plugins of Kubernetes controller for providing doris to user. Doris-Operator be build with [Kubebuilder](https://github.com/kubernetes-sigs/kubebuilder). This helm-chart deploy [doris-operator](https://github.com/selectdb/doris-operator) on Kubernetes.
613
## Install doris-operator
@@ -9,44 +16,44 @@ Doris-Operator is plugins of Kubernetes controller for providing doris to user.
916

1017
This helm chart have resources about RBAC , deployment ...etc for doris-operator running.
1118

12-
1. Add the selectdb repository
19+
1. Add the selectdb repository
1320
```Bash
14-
$ helm repo add selectdb https://charts.selectdb.com
21+
helm repo add selectdb https://charts.selectdb.com
1522
```
1623

17-
2. Update the Helm Chart Repo to the latest version
24+
2. Update the Helm Chart Repo to the latest version
1825
```Bash
1926
$ helm repo update selectdb
2027
```
2128

22-
3. Check the Helm Chart Repo is the latest version
29+
3. Check the Helm Chart Repo is the latest version
2330
```Bash
24-
$ helm search repo selectdb
31+
helm search repo selectdb
2532
NAME CHART VERSION APP VERSION DESCRIPTION
2633
selectdb/doris-operator 1.3.1 1.3.1 Doris-operator for doris creat ...
2734
selectdb/doris 1.3.1 2.0.3 Apache Doris is an easy-to-use ...
2835
```
2936

3037
### Install the doris-operator
31-
- Install doris-operator with default config in a namespace named `doris`
32-
```Bash
33-
$ helm install operator selectdb/doris-operator
34-
```
35-
- The repo defines the basic function for running doris-operator, Please use next command to deploy doris-operator, when you have completed customization of [`values.yaml`](./values.yaml)
36-
```Bash
37-
$ helm install -f values.yaml operator selectdb/doris-operator
38-
```
38+
- Install doris-operator in `doris` namespace using the default config:
39+
```Bash
40+
helm install operator selectdb/doris-operator --create-namespace -n doris
41+
```
42+
- Custom the values.yaml, use the follow command to deploy:
43+
```Bash
44+
helm install -f values.yaml operator selectdb/doris-operator --create-namespace -n doris
45+
```
3946

4047
### Validate installation Status
4148
Check the deployment status of Pods through the kubectl get pods command. Observe that the Pod of doris-operator is in the Running state and all containers in the Pod are ready, that means, the deployment is successful.
42-
```Bash
43-
$ kubectl get pod --namespace doris
44-
NAME READY STATUS RESTARTS AGE
45-
doris-operator-866bd449bb-zl5mr 1/1 Running 0 18m
46-
```
49+
```Bash
50+
kubectl get pod --namespace doris
51+
NAME READY STATUS RESTARTS AGE
52+
doris-operator-866bd449bb-zl5mr 1/1 Running 0 18m
53+
```
4754

4855
## Uninstall doris-operator
49-
Please confirm that Doris is not running in Kubernetes, use next command to uninstall `doris-operator`.
56+
Please confirm that Doris is not used in Kubernetes, and the data in doris is not valued, use the follow command to uninstall.
5057
```Bash
51-
$ helm uninstall operator
58+
helm -n doris uninstall operator
5259
```

helm-charts/doris-operator/templates/_helpers.tpl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
{{/*
3737
doris operator pod default resource.
3838
*/}}
39-
{{- define "operator.default.resource" }}
39+
{{- define "operator.default.resources" }}
4040
requests:
4141
cpu: 2
4242
memory: 4Gi
@@ -46,16 +46,15 @@ doris operator pod default resource.
4646
{{- end }}
4747

4848
{{/*
49-
doris operator webhook open.
49+
cancle webhook set, webhook is deprecated.
5050
*/}}
5151
{{- define "webhook.enable" -}}
52-
{{ default "false" .Values.dorisOperator.enableWebhook }}
53-
{{- end -}}
54-
52+
{{- print "false" }}
53+
{{- end }}
5554

5655
{{/*
57-
doris operator webhook service name.
56+
doris operator service name.
5857
*/}}
59-
{{- define "webhook.serviceName" }}
58+
{{- define "operator.serviceName" }}
6059
{{- print "doris-operator-service" }}
6160
{{- end }}

helm-charts/doris-operator/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ spec:
105105
fieldRef:
106106
fieldPath: metadata.name
107107
- name: SERVICE_NAME
108-
value: {{ template "webhook.serviceName" . }}
108+
value: {{ template "operator.serviceName" . }}
109109
livenessProbe:
110110
httpGet:
111111
path: /healthz
@@ -121,7 +121,7 @@ spec:
121121
# TODO(user): Configure the resources accordingly based on the project requirements.
122122
# More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
123123
resources:
124-
{{- include "operator.default.resource" . | indent 8 }}
124+
{{- include "operator.default.resources" . | indent 8 }}
125125
volumeMounts:
126126
- mountPath: /tmp/k8s-webhook-server/serving-certs
127127
name: cert

helm-charts/doris-operator/templates/mutatingWebhookConfiguration.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

helm-charts/doris-operator/templates/validatingWebhookConfiguration.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

helm-charts/doris-operator/templates/webhook-secret.yaml

Lines changed: 0 additions & 25 deletions
This file was deleted.

helm-charts/doris-operator/templates/webhook-service.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)