# chart values for https://github.com/bitnami/charts/tree/master/bitnami/etcd

# Kubernetes Cluster Domain
clusterDomain: cluster.local

issuer: ca-issuer

cert:
  duration: 87600h # 10yrs
  renewBefore: 720h # 30d

# values for bitnami/etcd.
etcd:
  removeMemberOnContainerTermination: false
  image:
    registry: docker.io
    repository: bitnami/etcd
    tag: 3.4.16-debian-10-r14

  replicaCount: 3

  # Kubernetes Cluster Domain
  clusterDomain: cluster.local

  # The resources limits/requests for the etcd container
  resources:
    limits: {}
    requests: {}

  # Auto compaction mode, by default periodic. Valid values: ‘periodic’, ‘revision’.
  # - 'periodic' for duration based retention, defaulting to hours if no time unit is provided (e.g. ‘5m’).
  # - 'revision' for revision number based retention.
  autoCompactionMode: periodic

  # Auto compaction retention for mvcc key value store in hour, by default 0, means disabled
  autoCompactionRetention: 1h

  # Authentication parameters
  auth:
    # Role-based access control parameters
    # ref: https://etcd.io/docs/current/op-guide/authentication/
    rbac:
      enabled: false # enable if needed later

    # TLS authentication for client-to-server communications
    # ref: https://etcd.io/docs/current/op-guide/security/
    client:
      # Switch to encrypt client-to-server communications using TLS
      secureTransport: true
      # Name of the existing secret containing the TLS certificates for client-to-server communications
      existingSecret: etcd-server-client # created by "etcd-certs" chart
      # Switch to enable host authentication using TLS certificates. Requires existing secret
      enableAuthentication: true
      # Name of the file in "existingSecret" containing the client certificate
      certFilename: tls.crt
      # Name of the file in "existingSecret" containing the client certificate private key
      certKeyFilename: tls.key

  # Enable persistence using Persistent Volume Claims
  # ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
  persistence:
    # If true, use a Persistent Volume Claim. If false, use emptyDir
    enabled: true
    # PVC Storage Class for etcd data volume
    storageClass: "" # set this to a better sc (like gp3) if possible
    # Persistent Volume size
    size: 8Gi
