diff --git a/changelog/fragments/1758890389-k8s-daemonset-up.yaml b/changelog/fragments/1758890389-k8s-daemonset-up.yaml new file mode 100644 index 00000000000..39e3951c937 --- /dev/null +++ b/changelog/fragments/1758890389-k8s-daemonset-up.yaml @@ -0,0 +1,32 @@ +# Kind can be one of: +# - breaking-change: a change to previously-documented behavior +# - deprecation: functionality that is being removed in a later release +# - bug-fix: fixes a problem in a previous version +# - enhancement: extends functionality but does not break or fix existing behavior +# - feature: new functionality +# - known-issue: problems that we are aware of in a given version +# - security: impacts on the security of a product or a user’s deployment. +# - upgrade: important information for someone upgrading from a prior version +# - other: does not fit into any of the other categories +kind: bug-fix + +# Change summary; a 80ish characters long description of the change. +summary: add info about hostPID for Universal Profiling + +# Long description; in case the summary is not enough to describe the change +# this field accommodate a description without length limits. +# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment. +#description: + +# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc. +component: "elastic-agent" + +# PR URL; optional; the PR number that added the changeset. +# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added. +# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number. +# Please provide it if you are adding a fragment for a different PR. +#pr: https://github.com/owner/repo/1234 + +# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of). +# If not present is automatically filled by the tooling with the issue linked to the PR number. +#issue: https://github.com/owner/repo/1234 diff --git a/deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-managed/base/elastic-agent-managed-daemonset.yaml b/deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-managed/base/elastic-agent-managed-daemonset.yaml index a27b41dd61a..30edb0c141a 100644 --- a/deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-managed/base/elastic-agent-managed-daemonset.yaml +++ b/deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-managed/base/elastic-agent-managed-daemonset.yaml @@ -23,6 +23,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: true dnsPolicy: ClusterFirstWithHostNet containers: diff --git a/deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml b/deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml index 8ef509d1284..f41a945cc9e 100644 --- a/deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml +++ b/deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml @@ -23,6 +23,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent-standalone + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: true dnsPolicy: ClusterFirstWithHostNet # Uncomment if using hints feature diff --git a/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-managed/base/elastic-agent-managed-daemonset.yaml b/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-managed/base/elastic-agent-managed-daemonset.yaml index f1db080187b..0aa0f799365 100644 --- a/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-managed/base/elastic-agent-managed-daemonset.yaml +++ b/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-managed/base/elastic-agent-managed-daemonset.yaml @@ -23,6 +23,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: true dnsPolicy: ClusterFirstWithHostNet containers: diff --git a/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-managed/extra/elastic-agent-managed-statefulset.yaml b/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-managed/extra/elastic-agent-managed-statefulset.yaml index 0d742ae0ce6..ab56743e969 100644 --- a/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-managed/extra/elastic-agent-managed-statefulset.yaml +++ b/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-managed/extra/elastic-agent-managed-statefulset.yaml @@ -23,6 +23,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: false dnsPolicy: ClusterFirstWithHostNet containers: diff --git a/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml b/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml index f24b75644be..3eba1922350 100644 --- a/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml +++ b/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml @@ -23,6 +23,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent-standalone + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: true dnsPolicy: ClusterFirstWithHostNet # Uncomment if using hints feature diff --git a/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/extra/elastic-agent-standalone-statefulset.yaml b/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/extra/elastic-agent-standalone-statefulset.yaml index 62b9db3b5e4..18a0d5b3270 100644 --- a/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/extra/elastic-agent-standalone-statefulset.yaml +++ b/deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/extra/elastic-agent-standalone-statefulset.yaml @@ -23,6 +23,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent-standalone + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: false dnsPolicy: ClusterFirstWithHostNet # Uncomment if using hints feature diff --git a/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml b/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml index 9c3228b90ef..402e49fdac4 100644 --- a/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml +++ b/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml @@ -23,6 +23,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: true dnsPolicy: ClusterFirstWithHostNet containers: diff --git a/deploy/kubernetes/elastic-agent-managed/elastic-agent-managed-daemonset.yaml b/deploy/kubernetes/elastic-agent-managed/elastic-agent-managed-daemonset.yaml index 306b9fd2d4d..bd463d4afa3 100644 --- a/deploy/kubernetes/elastic-agent-managed/elastic-agent-managed-daemonset.yaml +++ b/deploy/kubernetes/elastic-agent-managed/elastic-agent-managed-daemonset.yaml @@ -23,6 +23,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: true dnsPolicy: ClusterFirstWithHostNet containers: diff --git a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml index 9884e3c8780..46383c1e81c 100644 --- a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml +++ b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml @@ -699,6 +699,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent-standalone + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: true dnsPolicy: ClusterFirstWithHostNet # Uncomment if using hints feature diff --git a/deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset.yaml b/deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset.yaml index d505b6644c9..c5b1bd151e2 100644 --- a/deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset.yaml +++ b/deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset.yaml @@ -23,6 +23,10 @@ spec: - key: node-role.kubernetes.io/master effect: NoSchedule serviceAccountName: elastic-agent-standalone + # The following setting is needed for Universal Profiling to observe all processes on the host + # and produce userspace frames. + # If you are using the Universal Profiling integration, please uncomment the following line before applying. + # hostPID: true hostNetwork: true dnsPolicy: ClusterFirstWithHostNet # Uncomment if using hints feature