Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helm install based on kubeblocks #1788

Merged
merged 16 commits into from
Aug 8, 2023
Merged
Prev Previous commit
Next Next commit
helm: pod can create but not running
  • Loading branch information
machinly committed Jul 29, 2023
commit 7925d01fd1c486c59aa6bcec317e502dfe3efac5
11 changes: 6 additions & 5 deletions tools/helm/pika-cluster/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
apiVersion: v2
name: pika-cluster
description: An Redis Replication Cluster Helm chart for KubeBlocks.
description: A Pika Codis Cluster Helm chart for KubeBlocks.

type: application

version: 0.6.0-alpha.21

appVersion: "3.5.0"

home: https://pika.io/
icon: https://bitnami.com/assets/stacks/pika/img/redis-stack-220x234.png
home: https://github.com/OpenAtomFoundation/pika
keywords:
- pika
- redis
- database
- nosql
- replication
- codis

maintainers:
- name: ApeCloud
url: https://github.com/apecloud/kubeblocks/deploy
- name: pika
url: https://github.com/OpenAtomFoundation/pika/tools/helm
4 changes: 2 additions & 2 deletions tools/helm/pika-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ topologyKeys:
##
tolerations: [ ]

enabledLogs:
- running
#enabledLogs:
# - running

# The RBAC permission used by cluster component pod, now include event.create
serviceAccount:
Expand Down
2 changes: 1 addition & 1 deletion tools/helm/pika/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: pika
description: A Pika cluster definition Helm chart for Kubernetes
description: A Pika Codis cluster definition Helm chart for Kubernetes

type: application

Expand Down
12 changes: 7 additions & 5 deletions tools/helm/pika/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
- name: pika
workloadType: Replication
characterType: pika
enabledLogs:
- log
probes:
roleProbe:
failureThreshold: 2
Expand All @@ -28,7 +30,7 @@ spec:
targetPort: pika
configSpecs:
- name: pika-config
templateRef: pika-config-template
templateRef: pika-conf-template
namespace: {{ .Release.Namespace }}
volumeName: config
volumeTypes:
Expand Down Expand Up @@ -56,7 +58,7 @@ spec:
port: 26379
configSpecs:
- name: codis-sentinel-config
templateRef: pika-config-template
templateRef: pika-conf-template
namespace: {{ .Release.Namespace }}
volumeName: config
volumeTypes:
Expand Down Expand Up @@ -98,7 +100,7 @@ spec:
port: 19000
configSpecs:
- name: codis-proxy-config
templateRef: pika-config-template
templateRef: pika-conf-template
namespace: {{ .Release.Namespace }}
volumeName: config
volumeTypes:
Expand Down Expand Up @@ -167,7 +169,7 @@ spec:
port: 12345
configSpecs:
- name: codis-ha-config
templateRef: pika-config-template
templateRef: pika-conf-template
namespace: {{ .Release.Namespace }}
volumeName: config
volumeTypes:
Expand Down Expand Up @@ -244,7 +246,7 @@ spec:
port: 18080
configSpecs:
- name: codis-dashboard-config
templateRef: pika-config-template
templateRef: pika-conf-template
namespace: {{ .Release.Namespace }}
volumeName: config
volumeTypes:
Expand Down
28 changes: 17 additions & 11 deletions tools/helm/pika/templates/clusterversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,33 @@ spec:
- name: pika
image: {{ include "pika.image" . }}
imagePullPolicy: {{ default .Values.pika.imagePullPolicy "IfNotPresent" }}
- componentDefRef: codis-dashboard
- componentDefRef: redis-sentinel
versionsContext:
containers:
- name: codis-dashboard
image: {{ include "codis.image" . }}
imagePullPolicy: {{ default .Values.imagePullPolicy "IfNotPresent" }}
- name: redis-sentinel
image: {{ include "codis.image" . }}
imagePullPolicy: {{ default .Values.imagePullPolicy "IfNotPresent" }}
- componentDefRef: codis-proxy
versionsContext:
containers:
- name: codis-proxy
image: {{ include "codis.image" . }}
imagePullPolicy: {{ default .Values.imagePullPolicy "IfNotPresent" }}
- componentDefRef: codis-sentinel
- name: codis-proxy
image: {{ include "codis.image" . }}
imagePullPolicy: {{ default .Values.imagePullPolicy "IfNotPresent" }}
- componentDefRef: codis-ha
versionsContext:
containers:
- name: codis-sentinel
image: {{ include "codis.image" . }}
imagePullPolicy: {{ default .Values.imagePullPolicy "IfNotPresent" }}
- name: codis-ha
image: {{ include "codis.image" . }}
imagePullPolicy: {{ default .Values.imagePullPolicy "IfNotPresent" }}
- componentDefRef: codis-fe
versionsContext:
containers:
- name: codis-fe
image: {{ include "codis.image" . }}
imagePullPolicy: {{ default .Values.imagePullPolicy "IfNotPresent" }}
- componentDefRef: codis-dashboard
versionsContext:
containers:
- name: codis-codis-dashboard
image: {{ include "codis.image" . }}
imagePullPolicy: {{ default .Values.imagePullPolicy "IfNotPresent" }}
2 changes: 1 addition & 1 deletion tools/helm/pika/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: pika-config-template
name: pika-conf-template
labels:
{{- include "pika.labels" . | nindent 4 }}
data:
Expand Down
4 changes: 2 additions & 2 deletions tools/helm/pika/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ pika:
image:
registry: docker.io
repository: machinly/pika
tag: ${pika.version}
tag: unstable-2597ac3c
pullPolicy: IfNotPresent
codis:
image:
registry: docker.io
repository: machinly/codis
tag: ${pika.version}
tag: unstable-2597ac3c
pullPolicy: IfNotPresent