Follow the steps in this article to create the certificates used by GRPC, and configure TLS in both HawkConsole in k8s <--> HawkAgent in k8s and HawkConsole in k8s <--> HawkAgent in premises. The idea is:
Create the certificates and store them in secrets;
Mount secret to pods in .yaml file;
Let HawkConsole and HawkAgent read the certificates from secrets.
Environment
Cloud, K8S, kubernetes
Resolution
Download the script in attachment, edit it as needed;
Run this script to generate the certificates and .yaml;
Deploy the redtail-secrets-grpc.yaml to create the secrets;
Edit redtail_hkceagent.yaml and redtail_console.yaml in text editor, set "grpc_enable_tls" to "true" . And appended the lines below:
(also see the example in redtail_console.yaml attached)