Skip to content

Commit

Permalink
Add mount of /etc/machine-id for managed Agent in k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-almeida committed Jun 16, 2022
1 parent 5f66839 commit dd91c6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit dd91c6d

Please sign in to comment.