From 140a1edcea71eab90a0facbb8f928284662ee5b7 Mon Sep 17 00:00:00 2001 From: Rebecca Zanzig Date: Thu, 8 Nov 2018 12:06:00 -0800 Subject: [PATCH 1/2] Reorder Helm chart server values This matches the ordering in the Helm chart, to make it easier for users to find information. --- website/source/docs/platform/k8s/helm.html.md | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/website/source/docs/platform/k8s/helm.html.md b/website/source/docs/platform/k8s/helm.html.md index 0bd509aac3..17e4cdd005 100644 --- a/website/source/docs/platform/k8s/helm.html.md +++ b/website/source/docs/platform/k8s/helm.html.md @@ -142,6 +142,20 @@ and consider if they're appropriate for your deployment. CA and set of certificates. Additional Connect settings can be configured by setting the `server.extraConfig` value. + - `resources` (`object: {}`) - + The resource requests (CPU, memory, etc.) for each of the server agents. + This should be an object mapping directly to a Kubernetes + [ResourceRequirements](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#resourcerequirements-v1-core) object. If this isn't specified, then the pods + won't request any specific amount of resources. **Setting this is highly + recommended.** + + - `updatePartition` (`integer: 0`) - + This value is used to carefully control a rolling update of Consul server + agents. This value specifies the + [partition](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions) + for performing a rolling update. Please read the linked Kubernetes + documentation for more information. + - `disruptionBudget` - This configures the [PodDisruptionBudget](https://kubernetes.io/docs/tasks/run-application/configure-pdb/) @@ -180,24 +194,6 @@ and consider if they're appropriate for your deployment. configuration files from this volume with `-config-dir`. This defaults to false. - - `resources` (`object: {}`) - - The resource requests (CPU, memory, etc.) for each of the server agents. - This should be an object mapping directly to a Kubernetes - [ResourceRequirements](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#resourcerequirements-v1-core) object. If this isn't specified, then the pods - won't request any specific amount of resources. **Setting this is highly - recommended.** - - - `storage` (`string: "10Gi"`) - - The amount of storage to request for the persistant volume backing the - Consul server data. - - - `updatePartition` (`integer: 0`) - - This value is used to carefully control a rolling update of Consul server - agents. This value specifies the - [partition](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions) - for performing a rolling update. Please read the linked Kubernetes - documentation for more information. - * `client` - Values that configure running a Consul client agent on Kubernetes nodes. From db6c5d1b20a34ce3223a882f8865053c42c2dcaa Mon Sep 17 00:00:00 2001 From: Rebecca Zanzig Date: Thu, 8 Nov 2018 12:07:30 -0800 Subject: [PATCH 2/2] Add doc info for added server affinity value Supports newly added functionality to the Helm chart. --- website/source/docs/platform/k8s/helm.html.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/source/docs/platform/k8s/helm.html.md b/website/source/docs/platform/k8s/helm.html.md index 17e4cdd005..47ada433b3 100644 --- a/website/source/docs/platform/k8s/helm.html.md +++ b/website/source/docs/platform/k8s/helm.html.md @@ -194,6 +194,13 @@ and consider if they're appropriate for your deployment. configuration files from this volume with `-config-dir`. This defaults to false. + - `affinity` (`string`) - + This value defines the [affinity](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) + for server pods. It defaults to allowing only a single pod on each node, + which minimizes risk of the cluster becoming unusable if a node is lost. + If you need to run more pods per node (for example, testing on Minikube), + set this value to `null`. + * `client` - Values that configure running a Consul client agent on Kubernetes nodes.