# tls.myprivkey

Specifies the unencrypted private key corresponding to `tls.mycert`.

This parameter applies to Kubernetes Metadata Module (mmkubernetes).

Name:

  tls.myprivkey

Scope:

  action

Type:

  word

Default:

  none

Required?:

  no

Introduced:

  at least 8.x, possibly earlier

## Description

This is the full path and file name of the file containing the private key corresponding to the cert tls.mycert used for doing client cert auth against Kubernetes. This file is in PEM format, and must be unencrypted, so take care to secure it properly. For example: /etc/rsyslog.d/k8s-client-key.pem

## Action usage

    action(type="mmkubernetes" tls.myPrivKey="/etc/rsyslog.d/k8s-client-key.pem")

## See also

See also Kubernetes Metadata Module (mmkubernetes).

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.