Add facility to configure log levels in kubernetes-etcd

Change-Id: Iefaa48b9eb3403cf6955374d5ea460f676e0806b
This commit is contained in:
Luna Das 2019-09-03 20:26:23 +05:30
parent b3533b8522
commit d3501bc006
2 changed files with 8 additions and 1 deletions

View File

@ -69,6 +69,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: ETCD_LOG_PACKAGE_LEVELS
value: {{ default "" .Values.etcd.logging.log_level | include "helm-toolkit.utils.joinListWithComma" }}
- name: ETCD_CLIENT_CERT_AUTH
value: "true"
- name: ETCD_PEER_CLIENT_CERT_AUTH

View File

@ -41,7 +41,12 @@ etcd:
host_etc_path: /etc/etcd-example
host_data_path: /var/lib/etcd/example
cleanup_data: true
logging:
# Set individual etcd subpackages to specific log levels.
# An example being etcdserver=WARNING,security=DEBUG
log_level:
- etcdserver=DEBUG
- security=DEBUG
backup:
host_backup_path: /var/backups/etcd
backup_log_file: /var/log/etcd-backup.log