Documentation
¶
Overview ¶
Package fargate implements functions to interact with fargate
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEKSFargateNodename ¶
GetEKSFargateNodename returns the node name in EKS Fargate
func GetFargateHost ¶
GetFargateHost returns the Fargate hostname used by the core Agent for Fargate
func IsSidecar ¶
func IsSidecar() bool
IsSidecar returns whether the Agent is running in a sidecar deployment mode. This includes: - ECS Fargate (always sidecar) - EKS Fargate - ECS Managed Instances in sidecar mode (explicitly configured via ecs_deployment_mode: sidecar) These environments all share the characteristic that the agent runs as a sidecar container and should not report a hostname (the task/pod is the unit of identity, not the host).
Types ¶
type OrchestratorName ¶
type OrchestratorName string
OrchestratorName covers the possible platform names where Fargate can run
const ( // ECS represents AWS ECS ECS OrchestratorName = "ECS" // EKS represents AWS EKS EKS OrchestratorName = "EKS" // ECSManagedInstances represents AWS ECS Managed Instances ECSManagedInstances OrchestratorName = "ECSManagedInstances" // Unknown is used when we cannot retrieve the orchestrator Unknown OrchestratorName = "Unknown" )
func GetOrchestrator ¶
func GetOrchestrator() OrchestratorName
GetOrchestrator returns whether the Agent is running on ECS or EKS.