You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| namespace | string |`"{{ .Values.global.namespace }}"`| Kubernetes namespace to create and install this helm chart in |
33
34
| oci-onm-common.createNamespace | bool |`true`| If createNamespace is set to true, it tries to create the namespace defined in 'namespace' variable. |
34
35
| oci-onm-common.createServiceAccount | bool |`true`| By default, a cluster role, cluster role binding and serviceaccount will be created for the monitoring pods to be able to (readonly) access various objects within the cluster, to support collection of various telemetry data. You may set this to false and provide your own serviceaccount (in the parent chart(s)) which has the necessary cluster role(s) binded to it. Refer, README for the cluster role definition and other details. |
@@ -42,6 +43,7 @@ A Helm chart for collecting Kubernetes Metrics using OCI Management Agent into O
42
43
| deployment.cleanupEpochTime | integer |`nil`| Please provide the current epoch time in seconds (Eg: Executing the following command in a bash shell will provide the epoch time: "date +%s") to clean up the agent installation directory from previous deployment |
43
44
| deployment.daemonSetDeployment | bool |`false`| Setting the daemonset deployment to true, will deploy the Management Agents as a daemonset in addition to deploying the Management Agent as a statefulset. This is done to to distribute the node metrics collection to agents running on the node |
44
45
| deployment.daemonSet.hostPath | string |`nil`| The host path to store data, if Agent is deployed as DaemonSet. Management Agent Pod should have read-write access to it |
46
+
| deployment.daemonSet.overrideOwnership | bool |`true`| Override the ownership and permissions on the hostPath. The hostPath will be owned by the runAsUser and runAsGroup provided under security context and the permission as 750. </br>Note: This requires oraclelinux:8-slim image </br></br>Setting overrideOwnership to false will disable the ownership change. |
45
47
| deployment.resource.request.cpuCore | string |`200m`| Minimum CPU cores(millicore) for each agent instance |
46
48
| deployment.resource.request.memory | string |`500Mi`| Minimum memory(mebibytes) for each agent instance |
name: {{ include "mgmt-agent.resourceNamePrefix" . }}-agent
78
97
- name: mgmtagent-hostpath
79
98
hostPath:
80
-
path: {{ required "deployment.daemonSet.hostPath is required" .Values.deployment.daemonSet.hostPath }}
99
+
path: "{{ required "deployment.daemonSet.hostPath is required" .Values.deployment.daemonSet.hostPath }}"
100
+
{{- if regexMatch "^/opt/oracle/*$" .Values.deployment.daemonSet.hostPath }}
101
+
{{- fail "Error: deployment.daemonSet.hostPath cannot be /opt/oracle. Please provide another location or create a sub-directory under /opt/oracle and use that as hostPath" }}
# -- Kubernetes namespace to create and install this helm chart in
37
44
namespace: "{{ .Values.global.namespace }}"
@@ -78,7 +85,13 @@ deployment:
78
85
79
86
daemonSet:
80
87
# Provide the host path if Agent is deployed as DaemonSet. Management Agent Pod should have read-write access to it.
88
+
# Note: The hostPath cannot point to /opt/oracle, please provide another location or create a sub-directory under /opt/oracle and use that as hostPath.
89
+
# The Management Agent helm chart will attempt to change ownership and permissions on the host path provided here.
81
90
hostPath:
91
+
# Override the ownership and permissions on the hostPath. The hostPath will be owned by the runAsUser and runAsGroup provided under security context above and the permission as 750.
92
+
# Note: This requires oraclelinux:8-slim image
93
+
# Setting overrideOwnership to false will disable the ownership change.
94
+
overrideOwnership: true
82
95
83
96
# Provide the agent resources as per Kubernetes resource quantity
0 commit comments