File tree Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ Even when using `--reuse-values` (which uses the values of the previous installa
97
97
| ` platform.talos ` | Support for TalOS platform (Required when installing on TalOS) | Since 1.5.0, agent >= 8.2
98
98
| ` platform.gcos ` | Support for GCOS (Google Container-Optimized OS) platform (Required when installing on GCOS) | Since 1.5.0, agent >= 8.2
99
99
| ` platform.bottlerocket ` | Support for BottlerocketOS platform (Required when installing on BottlerocketOS) | Since 1.6.3, agent >= 8.3
100
+ | ` platform.autopilot ` | Support for Autopilot platform (Required when installing on GKE Autopilot cluster) | Since 1.8.0, agent >= 8.9
100
101
| ` agent.clusterName ` | Name of the kuberenets cluster, will be used as part of the information sent to the server | Since 1.5.0, agent >= 8.2
101
102
| ` namespace.name ` | Name of the namespace the agent resides on | Since 1.6.0
102
103
| ` namespace.create ` | Create/Don't create namespace for the agent | Since 1.6.0
Original file line number Diff line number Diff line change
1
+ {{- if .Values.platform.autopilot }}
2
+ apiVersion : auto.gke.io/v1
3
+ kind : AllowlistSynchronizer
4
+ metadata :
5
+ name : cortex-xdr-synchronizer
6
+ annotations :
7
+ helm.sh/hook : " pre-install,pre-upgrade"
8
+ " helm.sh/hook-weight " : " -1"
9
+ spec :
10
+ allowlistPaths :
11
+ - Palo-Alto-Networks/cortex-agent/*
12
+ {{- end }}
Original file line number Diff line number Diff line change 49
49
50
50
containers :
51
51
- name : cortex-agent
52
+ {{- if .Values.platform.autopilot }}
53
+ image : {{ .Values.daemonset.image.url }}
54
+ {{- else }}
52
55
image : {{ .Values.daemonset.image.repository }}:{{ .Values.daemonset.image.tag }}
56
+ {{- end }}
57
+
53
58
imagePullPolicy : {{ .Values.daemonset.image.pullPolicy }}
54
59
55
60
securityContext :
71
76
- SYS_ADMIN
72
77
- SYSLOG
73
78
- SYS_CHROOT
74
- {{- if not .Values.platform.talos }}
79
+ {{- if not (or .Values.platform.talos .Values.platform.autopilot) }}
75
80
- SYS_MODULE
76
81
{{- end }}
77
82
- SYS_PTRACE
@@ -106,6 +111,10 @@ spec:
106
111
value : {{ .Values.agent.clusterName | quote }}
107
112
- name : XDR_VAR_LOG_HOST_PATH
108
113
value : {{ include "cortex-xdr.XdrVarLogHostPath" . | quote }}
114
+ {{- if .Values.platform.autopilot }}
115
+ - name : XDR_CLUSTER_TYPE
116
+ value : " autopilot"
117
+ {{- end }}
109
118
110
119
volumeMounts :
111
120
@@ -116,8 +125,10 @@ spec:
116
125
- name : var-log
117
126
mountPath : /var/log
118
127
128
+ {{- if not (or .Values.platform.autopilot .Values.platform.bottlerocket) }}
119
129
- name : host-km-directory
120
130
mountPath : /lib/modules
131
+ {{- end }}
121
132
122
133
- name : pod-info
123
134
mountPath : /var/run/pod-info
@@ -150,10 +161,12 @@ spec:
150
161
path : {{ include "cortex-xdr.XdrVarLogHostPath" . | quote }}
151
162
type : DirectoryOrCreate
152
163
164
+ {{- if not .Values.platform.autopilot }}
153
165
- name : host-km-directory
154
166
hostPath :
155
167
path : /lib/modules
156
168
type : Directory
169
+ {{- end }}
157
170
158
171
- name : pod-info
159
172
downwardAPI :
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ platform:
34
34
gcos : false
35
35
# Deploy on bottlerocket platform
36
36
bottlerocket : false
37
+ # Deploy on autopilot cluster
38
+ autopilot : false
37
39
38
40
rbac :
39
41
# create/don't create Cluster Role and Cluster Role Bindings
@@ -92,15 +94,20 @@ daemonset:
92
94
93
95
tag : " latest"
94
96
97
+ # for autopilot
98
+ url : " "
99
+
95
100
# These values are the recommended values for cortex agent
96
101
# and are not recommended to change!
97
102
resources :
98
103
limits :
99
104
cpu : " 1500m"
100
105
memory : " 2Gi"
106
+ ephemeral-storage : " 5Gi"
101
107
requests :
102
108
cpu : " 200m"
103
109
memory : " 600Mi"
110
+ ephemeral-storage : " 10Gi"
104
111
selinuxOptionsSpcT : false
105
112
106
113
namespace :
You can’t perform that action at this time.
0 commit comments