2018-08-18 21:15:37 +00:00
|
|
|
# Available parameters and their default values for the Consul chart.
|
|
|
|
|
|
|
|
# Server, when enabled, configures a server cluster to run. This should
|
|
|
|
# be disabled if you plan on connecting to a Consul cluster external to
|
|
|
|
# the Kube cluster.
|
|
|
|
|
2018-09-02 23:19:11 +00:00
|
|
|
global:
|
|
|
|
# enabled is the master enabled switch. Setting this to true or false
|
|
|
|
# will enable or disable all the components within this chart by default.
|
|
|
|
# Each component can be overridden using the component-specific "enabled"
|
|
|
|
# value.
|
|
|
|
enabled: true
|
|
|
|
|
2018-08-18 21:15:37 +00:00
|
|
|
# Domain to register the Consul DNS server to listen for.
|
|
|
|
domain: consul
|
|
|
|
|
2018-09-05 14:45:54 +00:00
|
|
|
# Image is the name (and tag) of the Consul Docker image for clients and
|
|
|
|
# servers below. This can be overridden per component.
|
|
|
|
image: "consul:1.2.2"
|
|
|
|
|
2018-09-08 14:52:31 +00:00
|
|
|
# Datacenter is the name of the datacenter that the agents should register
|
|
|
|
# as. This shouldn't be changed once the Consul cluster is up and running
|
|
|
|
# since Consul doesn't support an automatic way to change this value
|
|
|
|
# currently: https://github.com/hashicorp/consul/issues/1858
|
|
|
|
datacenter: dc1
|
|
|
|
|
2018-08-18 21:15:37 +00:00
|
|
|
server:
|
2018-09-03 15:42:25 +00:00
|
|
|
enabled: "-"
|
2018-09-05 14:45:54 +00:00
|
|
|
image: null
|
2018-08-18 21:15:37 +00:00
|
|
|
replicas: 3
|
|
|
|
bootstrapExpect: 3 # Should <= replicas count
|
|
|
|
storage: 10Gi
|
|
|
|
|
|
|
|
# connect will enable Connect on all the servers, initializing a CA
|
|
|
|
# for Connect-related connections. Other customizations can be done
|
|
|
|
# via the extraConfig setting.
|
|
|
|
connect: true
|
|
|
|
|
|
|
|
# Resource requests, limits, etc. for the server cluster placement. This
|
|
|
|
# should map directly to the value of the resources field for a PodSpec.
|
|
|
|
# By default no direct resource request is made.
|
|
|
|
resources: {}
|
|
|
|
|
|
|
|
# updatePartition is used to control a careful rolling update of Consul
|
|
|
|
# servers. This should be done particularly when changing the version
|
|
|
|
# of Consul. Please refer to the documentation for more information.
|
|
|
|
updatePartition: 0
|
|
|
|
|
|
|
|
# disruptionBudget enables the creation of a PodDisruptionBudget to
|
|
|
|
# prevent voluntary degrading of the Consul server cluster.
|
|
|
|
disruptionBudget:
|
2018-09-03 15:58:19 +00:00
|
|
|
enabled: true
|
2018-08-18 21:15:37 +00:00
|
|
|
|
|
|
|
# maxUnavailable will default to (n/2)-1 where n is the number of
|
|
|
|
# replicas. If you'd like a custom value, you can specify an override here.
|
|
|
|
maxUnavailable: null
|
|
|
|
|
|
|
|
# extraConfig is a raw string of extra configuration to set with the
|
|
|
|
# server. This should be JSON or HCL.
|
|
|
|
extraConfig: |
|
|
|
|
{}
|
|
|
|
|
2018-09-08 15:28:13 +00:00
|
|
|
# extraVolumes is a list of extra volumes to mount. These will be exposed
|
|
|
|
# to Consul in the path `/consul/userconfig/<name>/`. The value below is
|
|
|
|
# an array of objects, examples are shown below.
|
|
|
|
extraVolumes: []
|
|
|
|
# - type: secret (or "configMap")
|
|
|
|
# name: my-secret
|
|
|
|
# load: false # if true, will add to `-config-dir` to load by Consul
|
|
|
|
|
2018-08-18 21:15:37 +00:00
|
|
|
# Client, when enabled, configures Consul clients to run on every node
|
|
|
|
# within the Kube cluster. The current deployment model follows a traditional
|
|
|
|
# DC where a single agent is deployed per node.
|
|
|
|
client:
|
2018-09-03 16:08:57 +00:00
|
|
|
enabled: "-"
|
2018-09-05 14:45:54 +00:00
|
|
|
image: null
|
2018-08-18 21:15:37 +00:00
|
|
|
join: null
|
|
|
|
|
2018-09-08 14:50:23 +00:00
|
|
|
# Resource requests, limits, etc. for the client cluster placement. This
|
|
|
|
# should map directly to the value of the resources field for a PodSpec.
|
|
|
|
# By default no direct resource request is made.
|
|
|
|
resources: {}
|
|
|
|
|
2018-09-08 14:41:54 +00:00
|
|
|
# extraConfig is a raw string of extra configuration to set with the
|
|
|
|
# server. This should be JSON or HCL.
|
|
|
|
extraConfig: |
|
|
|
|
{}
|
|
|
|
|
2018-09-08 15:35:07 +00:00
|
|
|
# extraVolumes is a list of extra volumes to mount. These will be exposed
|
|
|
|
# to Consul in the path `/consul/userconfig/<name>/`. The value below is
|
|
|
|
# an array of objects, examples are shown below.
|
|
|
|
extraVolumes: []
|
|
|
|
# - type: secret (or "configMap")
|
|
|
|
# name: my-secret
|
|
|
|
# load: false # if true, will add to `-config-dir` to load by Consul
|
|
|
|
|
2018-08-18 21:15:37 +00:00
|
|
|
# ConnectInject will enable the automatic Connect sidecar injector.
|
|
|
|
connectInject:
|
2018-09-03 19:57:47 +00:00
|
|
|
enabled: false # "-" disable this by default for now until the image is public
|
|
|
|
image: "TODO"
|
2018-08-18 21:15:37 +00:00
|
|
|
default: false # true will inject by default, otherwise requires annotation
|
|
|
|
caBundle: "" # empty will auto generate the bundle
|
|
|
|
|
|
|
|
# namespaceSelector is the selector for restricting the webhook to only
|
|
|
|
# specific namespaces. This should be set to a multiline string.
|
|
|
|
namespaceSelector: null
|
|
|
|
|
|
|
|
# The certs section configures how the webhook TLS certs are configured.
|
|
|
|
# These are the TLS certs for the Kube apiserver communicating to the
|
|
|
|
# webhook. By default, the injector will generate and manage its own certs,
|
|
|
|
# but this requires the ability for the injector to update its own
|
|
|
|
# MutatingWebhookConfiguration. In a production environment, custom certs
|
|
|
|
# should probaly be used. Configure the values below to enable this.
|
|
|
|
certs:
|
|
|
|
# secretName is the name of the secret that has the TLS certificate and
|
|
|
|
# private key to serve the injector webhook. If this is null, then the
|
|
|
|
# injector will default to its automatic management mode.
|
|
|
|
secretName: null
|
|
|
|
|
|
|
|
# caBundle is a base64-encoded PEM-encoded certificate bundle for the
|
|
|
|
# CA that signed the TLS certificate that the webhook serves. This must
|
|
|
|
# be set if secretName is non-null.
|
|
|
|
caBundle: ""
|
|
|
|
|
|
|
|
# certName and keyName are the names of the files within the secret for
|
|
|
|
# the TLS cert and private key, respectively. These have reasonable
|
|
|
|
# defaults but can be customized if necessary.
|
|
|
|
certName: tls.crt
|
|
|
|
keyName: tls.key
|
|
|
|
|
|
|
|
ui:
|
|
|
|
# True if you want to enable the Consul UI. The UI will run only
|
|
|
|
# on the server nodes. This makes UI access via the service below (if
|
|
|
|
# enabled) predictable rather than "any node" if you're running Consul
|
|
|
|
# clients as well.
|
2018-09-03 16:15:28 +00:00
|
|
|
enabled: "-"
|
2018-08-18 21:15:37 +00:00
|
|
|
|
|
|
|
# True if you want to create a Service entry for the Consul UI.
|
|
|
|
#
|
|
|
|
# serviceType can be used to control the type of service created. For
|
|
|
|
# example, setting this to "LoadBalancer" will create an external load
|
|
|
|
# balancer (for supported K8S installations) to access the UI.
|
2018-09-03 16:15:28 +00:00
|
|
|
service:
|
|
|
|
enabled: true
|
|
|
|
type: null
|
2018-08-18 21:15:37 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
image: lachlanevenson/k8s-kubectl
|
|
|
|
imageTag: v1.4.8-bash
|