-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moves the tls in the correct postion for oneagent daemonset #514
Conversation
@@ -33,7 +35,7 @@ func getCertificateMount() corev1.VolumeMount { | |||
func getTLSMount() corev1.VolumeMount { | |||
return corev1.VolumeMount{ | |||
Name: "tls", | |||
MountPath: OneAgentCustomKeysPath, | |||
MountPath: filepath.Join("/mnt/root", OneAgentCustomKeysPath), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't it /mnt/host_root
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if I understand correctly we mount /mnt/root
to mnt/host_root
, but I want to test it to be sure :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems to work :D
[root@gke-marcell--test-default-pool-67b1a6d3-m5k1 /]# cat mnt/host_root/var/lib/dynatrace/oneagent/agent/customkeys/custom.pem
asd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my "secret": kubectl -n dynatrace create secret generic tls-secret --from-literal="server.crt=asd"
(cherry picked from commit f54630c)
The oneagents deployed via a daemonset store their config on the root path of the node