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

Add mount of /etc/machine-id for managed Agent in k8s #530

Merged
merged 1 commit into from Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
Expand Up @@ -85,6 +85,9 @@ spec:
- name: etcsysmd
mountPath: /hostfs/etc/systemd
readOnly: true
- name: etc-mid
mountPath: /etc/machine-id
readOnly: true
volumes:
- name: proc
hostPath:
Expand Down Expand Up @@ -113,6 +116,10 @@ spec:
- name: etcsysmd
hostPath:
path: /etc/systemd
- name: etc-mid
hostPath:
path: /etc/machine-id
type: File
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
Expand Up @@ -85,6 +85,9 @@ spec:
- name: etcsysmd
mountPath: /hostfs/etc/systemd
readOnly: true
- name: etc-mid
mountPath: /etc/machine-id
readOnly: true
volumes:
- name: proc
hostPath:
Expand Down Expand Up @@ -113,3 +116,7 @@ spec:
- name: etcsysmd
hostPath:
path: /etc/systemd
- name: etc-mid
hostPath:
path: /etc/machine-id
type: File