Merge pull request #1383 from bitnami/cassandraCompat

[bitnami/cassandra] Allow custom entrypoint & cmd
This commit is contained in:
Javier J. Salmerón-García
2019-08-29 17:02:06 +02:00
committed by GitHub
6 changed files with 23 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: cassandra
version: 3.3.3
version: 3.4.0
appVersion: 3.11.4
description: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients.
icon: https://bitnami.com/assets/stacks/cassandra/img/cassandra-stack-220x234.png
+7
View File
@@ -59,6 +59,9 @@ The following tables lists the configurable parameters of the cassandra chart an
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `nameOverride` | String to partially override cassandra.fullname template with a string (will prepend the release name) | `nil` |
| `fullnameOverride` | String to fully override cassandra.fullname template with a string | `nil` |
| `entrypoint` | Cassandra container entrypoint (in case you want to use a different image) | `/app-entrypoint.sh` |
| `cmd` | Cassandra container cmd (in case you want to use a different image) | `/run.sh` |
| `volumePermissions.enabled` | Enable init container that changes volume permissions in the data directory (for cases where the default k8s `runAsUser` and `fsUser` values do not work) | `false` |
| `volumePermissions.image.registry` | Init container volume-permissions image registry | `docker.io` |
| `volumePermissions.image.repository` | Init container volume-permissions image name | `bitnami/minideb` |
@@ -242,6 +245,10 @@ kubectl create configmap init-db --from-file=path/to/scripts
helm install bitnami/cassandra --set initDBConfigMap=init-db
```
## Using a custom Cassandra image
This chart uses the [Bitnami cassandra](https://github.com/bitnami/bitnami-docker-cassandra) image by default. In case you want to use a different image, you can redefine the container entrypoint by setting the `entrypoint` and `cmd` values.
## Upgrade
### 2.0.0
@@ -28,7 +28,7 @@ spec:
- podSelector:
matchLabels:
app: {{ template "cassandra.name" . }}
release: {{ .Release.Name }}
release: {{ .Release.Name }}
# Internal ports
- ports:
- port: intra
@@ -38,7 +38,7 @@ spec:
- podSelector:
matchLabels:
app: {{ template "cassandra.name" . }}
release: {{ .Release.Name }}
release: {{ .Release.Name }}
{{- if .Values.metrics.enabled }}
# Allow prometheus scrapes for metrics
- ports:
+1 -1
View File
@@ -85,7 +85,7 @@ spec:
# Only node 0 will execute the startup initdb scripts
export CASSANDRA_IGNORE_INITDB_SCRIPTS=1
fi
/app-entrypoint.sh /run.sh
{{ .Values.entrypoint }} {{ .Values.cmd }}
image: {{ template "cassandra.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
resources: {{ toYaml .Values.resources | nindent 10 }}
+6
View File
@@ -214,6 +214,12 @@ affinity: {}
##
tolerations: []
##
## Container entrypoint and cmd (useful for using different images)
##
entrypoint: "/app-entrypoint.sh"
cmd: "/run.sh"
## Network policies
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
##
+6
View File
@@ -214,6 +214,12 @@ affinity: {}
##
tolerations: []
##
## Container entrypoint and cmd (useful for using different images)
##
entrypoint: "/app-entrypoint.sh"
cmd: "/run.sh"
## Network policies
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
##