39 Commits
Author SHA1 Message Date
James H. Linder e7a091fd0e [stable/cockroachdb] deprecating this cockroachdb chart repository (#23000)
* [stable/cockroachdb] deprecating this cockroachdb chart repository

Given the deprecation of `stable`, future CockroachDB Helm charts are
now located at:

  code repository: https://github.com/cockroachdb/helm-charts
  charts repository: https://charts.cockroachdb.com

Update this repository to point users to the new locations.

Signed-off-by: James H. Linder <jamesl@cockroachlabs.com>

* Complete the deprecation steps as described in PROCESSES.md

Signed-off-by: James H. Linder <jamesl@cockroachlabs.com>
2020-07-08 13:54:08 -04:00
Joachim Mathesandarturrez 1c71165c52 [stable/cockroachdb] Allow TLS secrets for certificates (#20425)
* "bring-your-own-certs" scenario
bump cockroachdb version to 19.2.1->19.2.2

Signed-off-by: Artur <artur@upbound.io>

* version bump 3.0.2 -> 3.0.3

Signed-off-by: Artur <artur@upbound.io>

* [stable/cockroachdb] Allow tls secrets as certificate source

This allows usage of cert-manager:
https://github.com/jetstack/cert-manager

Signed-off-by: Joachim Mathes <jmathes@contargo.net>

* [stable/cockroachdb] Align table fields in documentation

Signed-off-by: Joachim Mathes <jmathes@contargo.net>

* [stable/cockroachdb] Update documentation

Signed-off-by: Joachim Mathes <jmathes@contargo.net>

Co-authored-by: arturrez <56270896+arturrez@users.noreply.github.com>
2020-02-05 11:39:55 -08:00
Joel Kenny f4fcf44ce4 [stable/cockroachdb] Fix statefulset resource templating (#19342)
An accidental use of `indent` instead of `nindent` caused us to not be able
to create statefulsets with resource requests or limits, due to a YAML
templating error.

Signed-off-by: Joel Kenny <joel@cockroachlabs.com>
2019-12-03 11:02:58 -08:00
Kai Ren b5af62f491 [stable/cockroachdb] Complete refactor and capabilities extension (#18993)
- refactor chart values to be more idiomatic and document them more precisely
- rename k8s labels to namespaced ones
- refactor template names and make them more readable
- support 'nameOverride' and 'fullnameOverride' values
- make StatefulSet 'replicas' configurable
- make affinity, tolerations and nodeSelector configurable for StatefulSet and init Job
- make labels and annotations configurable for Pods of StatefulSet and init Job
- make init Job idempotent for already initialized clusters
- add ability to persist data in hostPath and emptyDir
- add ability to configure NetworkPolicy with custom ingress rules
- add ability to specify credentials for private registries of Docker images
- support running in standalone mode (start-single-node)
- provide more configuration parameters in chart values
- reuse entrypoint of the used Docker image instead of overwriting it
- bump chart's version to 3.0.0
- update README and add upgrading instructions for 3.0.0

Signed-off-by: tyranron <tyranron@gmail.com>
2019-12-03 09:56:58 -08:00
Tobias Paepke be4c085ce6 [stable/cockroachdb] labels for cockroachdb service (#18233)
* Add labels to cockroachdb service and servicediscovery-service
Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

* update README.md to cover new values
Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

* Chart version bump
Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>
2019-10-23 11:06:58 -07:00
Joel Kenny 4b8330c36d [stable/cockroachdb] Fix for compatibiliy with Kubernetes 1.16 (#17837)
In Kubernetes 1.16, all resources under `apps/v1beta1` are now only available
under `apps/v1`:
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.16.md#deprecations-and-removals

This updates our StatefulSet apiVersion, while maintaining compatibility with
old versions of Kubernetes where StatefulSets are not available under the
`apps/v1` APIVersion.

Signed-off-by: Joel Kenny <joel@cockroachlabs.com>
2019-10-11 09:49:40 -07:00
Paul Farver 8180c3ffcf [stable/cockroachdb] Split template into multiple files (#17242)
* [Stable/Cockroachdb] Split manifest into files

Signed-off-by: Paul Farver <paulfarver@gmail.com>

* [Stable/Cockroachdb] Clean pr

Signed-off-by: Paul Farver <paulfarver@gmail.com>

* [Stable/Cockroachdb] Bump chart version

Signed-off-by: Paul Farver <paulfarver@gmail.com>
2019-09-24 11:31:28 -07:00
Joel Kenny d0fc388575 [stable/cockroachdb] adds resources stanza to cockroach init pod (#14921)
Previously, this chart was not deployable in a Kubernetes namespace with
[Resource Quotas](https://kubernetes.io/docs/concepts/policy/resource-quotas/)
enabled. A user could set resource limits on the CRDB pods, but not on the
short-lived pod that is part of the cockroachdb-init job. This adds an
additional resource configuration to that pod spec to allow this chart to be
deployed when Resource Quotas are enabled.

Signed-off-by: Joel Kenny <joel@cockroachlabs.com>
2019-06-19 13:04:20 -07:00
Christian Hüning 8055bd2893 Add ExtraInitAnnotations (#13519)
Signed-off-by: Christian Hüning <christian.huening@figo.io>
2019-05-05 17:31:36 -07:00
Christian Hüning 8ae73a4fd9 Add an option for ExtraAnnotations for the StatefulSet (#13400)
Signed-off-by: Christian Hüning <christian.huening@figo.io>
2019-05-01 21:28:17 -07:00
Christian Hüning f4bb13e508 allow to set COCKROACH_ENGINE_MAX_SYNC_DURATION (#13244)
* allow to set COCKROACH_ENGINE_MAX_SYNC_DURATION

Signed-off-by: Christian Hüning <christian.huening@figo.io>

* switched to ExtraEnvArgs

Signed-off-by: Christian Hüning <christian.huening@figo.io>

* Bumped App and Tag version to 2.1.6

Signed-off-by: Christian Hüning <christian.huening@figo.io>

* added example to comment in values.yaml

Signed-off-by: Christian Hüning <christian.huening@figo.io>
2019-04-25 21:54:25 -07:00
Nik Voss fbc9f1d365 [stable/cockroachdb] Additional parameters for cockroachdb (#11747)
* Add ExtraArgs and ExtraSecretMounts for additional configurability.

Signed-off-by: Niklas Voss <niklas.voss@gmail.com>

* Bump version.

Signed-off-by: Niklas Voss <niklas.voss@gmail.com>

* Updated README to include new values.

Signed-off-by: Niklas Voss <niklas.voss@gmail.com>

* Removed blank line to avoid linting errors.

Signed-off-by: Niklas Voss <niklas.voss@gmail.com>
2019-02-27 16:31:15 -08:00
schantaraud 901997c06c CockroachDB: allow init job to connect with network policies (#9943)
Sets client label on init job when NetworkPolicy.Enabled and !NetworkPolicy.AllowExternal

Signed-off-by: Samuel Chantaraud <samuel.chantaraud@messagepoint.com>
2018-12-13 01:00:45 -08:00
Bram Gruneir 80d163ee36 [stable/cockroachdb] Increase the default disk size to 100GB (#9423)
In the past there had problems with Minikube not accepting large disk sizes,
but it no longer seems to be a problem on more recent versions, so let's
default to something a little more reasonable here.

Signed-off-by: Bram Gruneir <bram@cockroachlabs.com>
2018-11-20 10:19:11 -08:00
Alex Robinson bc6db0d51a [stable/cockroachdb] Warn about default disk size, improve NOTES format (#7828)
The default disk size of 1 GiB can cause mistakes (e.g.
https://stackoverflow.com/q/52245811/1925481), but is needed in
order to work in environments like Minikube.

And I don't know what's going on with the way that line breaks work in
NOTES.txt, but this is what makes it render properly.

Signed-off-by: Alex Robinson <alexdwanerobinson@gmail.com>
2018-10-18 10:50:12 -07:00
Rio Kierkels 85cddea40f fix(stable/cockroachdb): Add an explicit selector to the StatefulSet (#8109)
This was preventing any upgrades because kubernetes made the selector
immutable and the chart version changes between upgrades of charts.

fix #8102

Signed-off-by: Rio Kierkels <riokierkels@gmail.com>
2018-10-04 13:41:55 -07:00
Oliver a8cb0377d1 Added functionality to let us join an already existing cluster. (#7582)
* Added functionality to let us join an already existing cluster.

Signed-off-by: Oliver Isaac <oisaac@gmail.com>

* Added locality to values.yaml and README. Version bump.

Signed-off-by: Oliver Isaac <oisaac@gmail.com>

* Cleaned up trailing whitespace

Signed-off-by: Oliver Isaac <oisaac@gmail.com>

* Typo and join bug-fix

Signed-off-by: Oliver Isaac <oisaac@gmail.com>
2018-09-06 14:07:13 -07:00
Brandon Harper adb3bc965a Added a Tolerations option which is applied to the pods in the stateful set (#7369) 2018-08-27 12:10:18 -07:00
Oliver 4bcf57dc66 [stable/cockroachdb] Breakout ports to support Istio (#7269)
* [stable/cockroachdb] Added support for node selector

* Merge with charts/stable

* [stable/cockroachdb] Added support for node selector

* [stable/cockroachdb] Added support for node selector

new chart stable/mysqldump (#4069)

* new chart stable/mysqldump

Helps the user backup mysql databases to a persistent volume

* use chart.name from tpl, add app label

* add app/chart fixes to mysqldump-cron.yaml

* fix backoffLimit in wrong place.

* exit gracefully if db host not specified

Merge with charts/stable

* Chart version bump

* Added external and internal GRPC port as options. Also added options to customize service annotations. Need these for istio config.

* Updated README to include values I added. Reformatted the table so it reads pretty in plaintext

* cockroach chart version bump for istio work
2018-08-22 11:04:04 -07:00
Oliver aa93707cad Add NodeSelector to CockroachDB Pods (#7196)
* [stable/cockroachdb] Added support for node selector

* Merge with charts/stable

* [stable/cockroachdb] Added support for node selector

* [stable/cockroachdb] Added support for node selector

new chart stable/mysqldump (#4069)

* new chart stable/mysqldump

Helps the user backup mysql databases to a persistent volume

* use chart.name from tpl, add app label

* add app/chart fixes to mysqldump-cron.yaml

* fix backoffLimit in wrong place.

* exit gracefully if db host not specified

Merge with charts/stable

* Chart version bump
2018-08-15 10:15:00 -07:00
Alex Robinson 5c8e924545 Make cockroachdb chart work with --wait flag on helm install (#6964)
We had a deadlock of sorts. --wait waits until all pods are ready.
postinstall hooks don't run until after --wait is done waiting. The pods
won't be ready until the `init` job runs, which was a postinstall hook.

This gets around that by making the init command run as part of the
chart rather than as a postinstall hook. I added a bash retry loop for
the init command to get around the lack of ability to configure pod
restart backoffs in Kubernetes.
2018-08-12 11:25:53 -07:00
Matt McNaughton b2c9f8514d Fix cockroachdb not abiding by resources reqs (#5629)
The containers in the stateful set were ignoring the resource requests
when specified in `values.yaml`. Comment out the resources requests
in `values.yaml`, so we only set requests if the user specifically
enables them.

I verified this is working by running `kubectl describe pod POD | grep
cpu` on one of the created pods on the fix branch. It returned `cpu:
"100m"`. On the master branch, the same command returned nothing.
2018-05-18 06:24:51 -07:00
Alex Robinson 13c704cac8 cockroachdb: Various improvements (#4876)
* cockroachdb: Add readiness/liveness probes

* cockroachdb: Switch from unready-endpoints annotation to proper field

This works as far back as Kubernetes 1.8, which means we're still
supporting the 3 most recently release versions of Kubernetes, more than
the 2 required by the README of this repo.

However, I'm leaving the annotation in because the field itself doesn't
work on 1.9.x: https://github.com/kubernetes/kubernetes/issues/58662

* cockroachdb: Add podManagementPolicy and UpdateStrategy
2018-04-19 02:49:59 -07:00
Matt Farina 74a23f7efb Include pre-releases in the semver ranges (#4634)
This is important when testing against alpha and beta builds of
Kubernetes along with environments that use pre-releases to denote
things other than pre-releases (e.g., gke denotes the environment
with a pre-releases)
2018-04-03 07:39:07 -07:00
Matt Farina df2610ad3f Fixing version comparisons from strings to semver (#4596)
* Fixing version comparisons from strings to semver

This impacts the jump to kubernetes 1.10. For more information
see issue 3002

* Updating chart owner to github id
2018-04-02 10:15:03 -07:00
Alex Robinson e352f46ba3 Support secure mode in CockroachDB chart (#4463)
* Fix anti-affinity policy and bump version of cockroachdb chart

* Support secure mode in CockroachDB chart
2018-03-26 11:24:00 -07:00
Matt Cholick fffa07e9b9 [stable/cockroachdb] Add config for public service type (#4100)
* [stable/cockroachdb] Add config for public service type

* [stable/cockroachdb] Increment chart version
2018-03-10 12:21:10 -08:00
Alex Robinson a5783d62a6 Improvements to CockroachDB chart (#3380)
* Bump CockroachDB chart to v1.1.4

* Switch to safer initialization mechanism in CockroachDB chart

This removes the dependency on the peer-finder-based init container,
replacing it with a post-install hook that runs the `cockroach init`
command for initializing a CockroachDB cluster.

This removes a (very rare) potential edge case where a cluster could
end up in split brain if all pods went down, cockroachdb-0 lost its
disk, and the other pods didn't.

* cockroachdb: Change from alpha annotation to proper StorageClass field

* cockroachdb: Add test to verify cluster is reachable and functional
2018-01-19 19:57:26 -08:00
Alex Robinson f40cf77112 Bump CockroachDB chart's version and other small improvements to it (#3105)
* Add options for configuring cache and SQL memory to CockroachDB chart

* Bump CockroachDB version to v1.1.3

* Improve CockroachDB's PodDisruptionBudget

Letting only 1 go down is much safer and more accurately reflects the
desire of operators than allowing up to 33% to go down. It's
unfortunate that this bumps the minimum version by so much, but 1.7 is a
full two releases ago.
2017-12-22 09:15:36 -08:00
kevinschumacher 34e306e831 [stable/cockroachdb] #1785 namespace defined templates with chart name (#1984) 2017-09-10 11:50:14 -05:00
Sameer Naik ba518c2141 cockroachdb: fix invalid volume spec in StatefulSet resource (#1713) 2017-08-13 20:02:57 +02:00
Dan (Turk) 20060e3ce9 Add NetworkPolicy for CockroachDB (#1594) 2017-08-09 16:20:18 -07:00
Alex Robinson 9f264ae2a7 cockroachdb: Move init container and pod affinity out of annotations (#1326)
* cockroachdb: Move init container and pod affinity out of annotations

This makes the chart only work on clusters running 1.6 newer, but
was requested (at least the affinity part) in #1306.

* cockroachdb: Rename file from petset to statefulset

* [stable/cockroachdb] Fix whitespace in replicas
2017-07-17 17:43:38 -07:00
Frederic Hemberger 912f50c716 Use consistent whitespace in template placeholders (#1437)
Use consistent whitespace in template placeholders
2017-07-09 21:11:24 +02:00
Zhou Tao db189d910f change template file name from petset to statefulset for cockroachdb (#1273) 2017-06-24 17:36:19 +02:00
Alex Robinson 53d4ba9b08 Support custom domains in the cockroachdb chart's init container (#1219)
This switches from using v0.1 of the peer-finder image to a version that
includes https://github.com/kubernetes/contrib/pull/2013

While I'm here, switch the version of cockroachdb from 1.0 to 1.0.1
2017-06-08 09:38:28 -07:00
Alex Robinson cb13bc616d Add explicit image tag to CockroachDB chart (#1060)
* Add explicit image tag to CockroachDB chart

* Remove CockroachDB liveness/readiness probes

This ensures the cluster can properly recover even if all the nodes are
brought down at once. More detailed explanation at:
github.com/kubernetes/test-infra/issues/1740#issuecomment-279555187

* Bump chart version

* Add --insecure to cockroach sql command

* cockroachdb: Add --insecure to README.md
2017-05-11 13:33:43 -07:00
Reinhard Nägele abe8e7efae [stable/cockroachdb] Remove helm.sh/created annotations (#504)
* [stable/cockroachdb] Remove helm.sh/created annotations

* cockroachdb: bump version to 0.2.1
2017-01-27 14:26:13 -08:00
Alex Robinson 06df61fdec Update CockroachDB chart for k8s 1.5 and promote to stable (#344)
* Update CockroachDB chart to work with StatefulSets on k8s 1.5

* Update CockroachDB to use pod anti-affinity and disruption budget

* Promote CockroachDB chart from incubator to stable
2017-01-18 15:57:02 -07:00