Skip to content
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

Merged
merged 3 commits into from
Feb 1, 2022

Conversation

0sewa0
Copy link
Contributor

@0sewa0 0sewa0 commented Jan 31, 2022

The oneagents deployed via a daemonset store their config on the root path of the node

@0sewa0 0sewa0 added the bug Something isn't working label Jan 31, 2022
@@ -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),
Copy link
Collaborator

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?

Copy link
Contributor Author

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 :)

Copy link
Contributor Author

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

Copy link
Contributor Author

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"

@0sewa0 0sewa0 merged commit f54630c into master Feb 1, 2022
@0sewa0 0sewa0 deleted the bugix/incorrect-tls-location branch February 1, 2022 07:44
chrismuellner pushed a commit that referenced this pull request Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants