@@ -36,6 +36,13 @@ type AgentsOnlySpec struct {
3636 TLSSkipVerify bool `json:"tlsSkipVerify,omitempty"`
3737}
3838
39+ type AgentTLSSpec struct {
40+ // Secret containing the CA certificate to verify the Coroot server's certificate.
41+ CASecret * corev1.SecretKeySelector `json:"caSecret,omitempty"`
42+ // Whether to skip verification of the Coroot server's TLS certificate.
43+ TLSSkipVerify bool `json:"tlsSkipVerify,omitempty"`
44+ }
45+
3946type NodeAgentSpec struct {
4047 // Priority class for the node-agent pods.
4148 PriorityClassName string `json:"priorityClassName,omitempty"`
@@ -50,6 +57,8 @@ type NodeAgentSpec struct {
5057 // Environment variables for the node-agent.
5158 Env []corev1.EnvVar `json:"env,omitempty"`
5259 Image ImageSpec `json:"image,omitempty"`
60+ // TLS settings for connecting to Coroot.
61+ TLS * AgentTLSSpec `json:"tls,omitempty"`
5362
5463 LogCollector LogCollectorSpec `json:"logCollector,omitempty"`
5564 EbpfTracer EbpfTracerSpec `json:"ebpfTracer,omitempty"`
@@ -90,6 +99,8 @@ type ClusterAgentSpec struct {
9099 // Environment variables for the cluster-agent.
91100 Env []corev1.EnvVar `json:"env,omitempty"`
92101 Image ImageSpec `json:"image,omitempty"`
102+ // TLS settings for connecting to Coroot.
103+ TLS * AgentTLSSpec `json:"tls,omitempty"`
93104
94105 KubeStateMetrics KubeStateMetricsSpec `json:"kubeStateMetrics,omitempty"`
95106}
@@ -254,6 +265,10 @@ type ServiceSpec struct {
254265 GRPCPort int32 `json:"grpcPort,omitempty"`
255266 // gRPC nodePort (if type is NodePort).
256267 GRPCNodePort int32 `json:"grpcNodePort,omitempty"`
268+ // HTTPS port (optional).
269+ HTTPSPort int32 `json:"httpsPort,omitempty"`
270+ // HTTPS nodePort (if type is NodePort).
271+ HTTPSNodePort int32 `json:"httpsNodePort,omitempty"`
257272 // Annotations for the service.
258273 Annotations map [string ]string `json:"annotations,omitempty"`
259274}
@@ -273,6 +288,7 @@ type TLSSpec struct {
273288}
274289
275290type CorootSpec struct {
291+
276292 // Specifies the metric resolution interval.
277293 // +kubebuilder:validation:Pattern="^[0-9]+[sm]$"
278294 MetricsRefreshInterval string `json:"metricsRefreshInterval,omitempty"`
@@ -292,6 +308,10 @@ type CorootSpec struct {
292308 AuthAnonymousRole string `json:"authAnonymousRole,omitempty"`
293309 // Initial admin password for bootstrapping.
294310 AuthBootstrapAdminPassword string `json:"authBootstrapAdminPassword,omitempty"`
311+ // Disable plain HTTP.
312+ HTTPDisabled bool `json:"httpDisabled,omitempty"`
313+ // HTTPS listen address (default: :8443).
314+ HTTPSListen string `json:"httpsListen,omitempty"`
295315 // Secret containing the initial admin password.
296316 AuthBootstrapAdminPasswordSecret * corev1.SecretKeySelector `json:"authBootstrapAdminPasswordSecret,omitempty"`
297317 // gRPC settings.
0 commit comments