Ajudar a melhorar esta página
Para contribuir com este guia de usuário, escolha o link Editar esta página no GitHub, disponível no painel direito de cada página.
Visualizar insights de clusters
O Amazon EKS fornece dois tipos de insights: Insights de configurações e Insights de atualizações. Os Insights de configurações identificam configurações incorretas na configuração do EKS Hybrid Nodes que podem prejudicar a funcionalidade do cluster ou das workloads. Os Insights de atualizações identificam problemas que podem afetar a capacidade de atualizar para novas versões do Kubernetes.
Para ver a lista de verificações de insights realizadas e quaisquer problemas relevantes identificados pelo Amazon EKS, você pode chamar a aparência no AWS Management Console, a AWS CLI, os SDKs da AWS e a operação da API ListInsights
do Amazon EKS.
Visualizar insights de configurações (console)
-
Abra o console do Amazon EKS
. -
Na lista Clusters, selecione o nome do cluster do Amazon EK cujos insights deseja visualizar.
-
Escolha Monitorar cluster.
-
Escolha a guia Integridade do cluster.
-
Na tabela Insights de configurações, você verá as seguintes colunas:
-
Nome: a verificação que foi realizada pelo Amazon EKS em relação ao cluster.
-
Status do insight: um insight com status de
Error
significa que há uma configuração incorreta que provavelmente está afetando a funcionalidade do cluster. Um insight com status deWarning
significa que a configuração não corresponde à abordagem documentada, mas que a funcionalidade do cluster poderá funcionar se você a tiver configurado intencionalmente. Um insight com status dePassing
significa que o Amazon EKS não encontrou nenhum problema associado a essa verificação de insights no cluster. -
Descrição: informações da verificação de insights, que incluem o alerta e as ações recomendadas para remediação.
-
Horário da última atualização: a hora em que o status do insight foi atualizado pela última vez para o cluster.
-
Visualizar insights de atualizações (console)
-
Abra o console do Amazon EKS
. -
Na lista Clusters, selecione o nome do cluster do Amazon EK cujos insights deseja visualizar.
-
Escolha Visualizar painel.
-
Escolha a guia Insights de cluster.
-
Na tabela Insights de atualizações, você verá as seguintes colunas:
-
Nome: a verificação que foi realizada pelo Amazon EKS em relação ao cluster.
-
Status do insight: um insight com status de “Erro” normalmente significa que a versão do Kubernetes afetada é N+1 da versão atual do cluster, enquanto um status de “Aviso” significa que o insight se aplica a uma versão do Kubernetes futura N+2 ou mais. Um insight com status de “Aprovado” significa que o Amazon EKS não encontrou nenhum problema associado a essa verificação de insights em seu cluster. Um status de insight de “Desconhecido” significa que o Amazon EKS não consegue determinar se seu cluster é afetado por essa verificação de insights.
-
Versão: a versão do Kubernetes que o insight verificou em busca de possíveis problemas.
-
Horário da última atualização: a hora em que o status do insight foi atualizado pela última vez para o cluster.
-
Horário da última transição: a hora em que o status do insight foi alterado pela última vez.
-
Descrição: informações da verificação de insights, que incluem o alerta e as ações recomendadas para remediação.
-
Exibir insights do cluster (AWS CLI)
-
Determine qual cluster você gostaria de verificar para obter informações. O comando a seguir lista insights de um cluster especificado. Faça as seguintes modificações no comando, conforme necessário, e execute o comando modificado:
-
Substitua
region-code
pelo código da sua região da AWS. -
Substitua
my-cluster
pelo nome do cluster.aws eks list-insights --region
region-code
--cluster-namemy-cluster
Veja um exemplo de saída abaixo.
{ "insights": [ { "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "name": "Deprecated APIs removed in Kubernetes vX.XX", "category": "UPGRADE_READINESS", "kubernetesVersion": "X.XX", "lastRefreshTime": 1734557315.000, "lastTransitionTime": 1734557309.000, "description": "Checks for usage of deprecated APIs that are scheduled for removal in Kubernetes vX.XX. Upgrading your cluster before migrating to the updated APIs supported by vX.XX could cause application impact.", "insightStatus": { "status": "PASSING", "reason": "No deprecated API usage detected within the last 30 days.", }, }, { "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222", "name": "Kubelet version skew", "category": "UPGRADE_READINESS", "kubernetesVersion": "X.XX", "lastRefreshTime": 1734557309.000, "lastTransitionTime": 1734557309.000, "description": "Checks for kubelet versions of worker nodes in the cluster to see if upgrade would cause non compliance with supported Kubernetes kubelet version skew policy.", "insightStatus": { "status": "UNKNOWN", "reason": "Unable to determine status of node kubelet versions.", }, }, { "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333", "name": "Deprecated APIs removed in Kubernetes vX.XX", "category": "UPGRADE_READINESS", "kubernetesVersion": "X.XX", "lastRefreshTime": 1734557315.000, "lastTransitionTime": 1734557309.000, "description": "Checks for usage of deprecated APIs that are scheduled for removal in Kubernetes vX.XX. Upgrading your cluster before migrating to the updated APIs supported by vX.XX could cause application impact.", "insightStatus": { "status": "PASSING", "reason": "No deprecated API usage detected within the last 30 days.", }, }, { "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLEaaaaa", "name": "Cluster health issues", "category": "UPGRADE_READINESS", "kubernetesVersion": "X.XX", "lastRefreshTime": 1734557314.000, "lastTransitionTime": 1734557309.000, "description": "Checks for any cluster health issues that prevent successful upgrade to the next Kubernetes version on EKS.", "insightStatus": { "status": "PASSING", "reason": "No cluster health issues detected.", }, }, { "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLEbbbbb", "name": "EKS add-on version compatibility", "category": "UPGRADE_READINESS", "kubernetesVersion": "X.XX", "lastRefreshTime": 1734557314.000, "lastTransitionTime": 1734557309.000, "description": "Checks version of installed EKS add-ons to ensure they are compatible with the next version of Kubernetes. ", "insightStatus": { "status": "PASSING", "reason": "All installed EKS add-on versions are compatible with next Kubernetes version."}, }, { "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLEccccc", "name": "kube-proxy version skew", "category": "UPGRADE_READINESS", "kubernetesVersion": "X.XX", "lastRefreshTime": 1734557314.000, "lastTransitionTime": 1734557309.000, "description": "Checks version of kube-proxy in cluster to see if upgrade would cause non compliance with supported Kubernetes kube-proxy version skew policy.", "insightStatus": { "status": "PASSING", "reason": "kube-proxy versions match the cluster control plane version.", }, }, { "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLEddddd", "name": "Deprecated APIs removed in Kubernetes vX.XX", "category": "UPGRADE_READINESS", "kubernetesVersion": "X.XX", "lastRefreshTime": 1734557315.000, "lastTransitionTime": 1734557309.000, "description": "Checks for usage of deprecated APIs that are scheduled for removal in Kubernetes vX.XX. Upgrading your cluster before migrating to the updated APIs supported by vX.XX could cause application impact.", "insightStatus": { "status": "PASSING", "reason": "No deprecated API usage detected within the last 30 days.", }, }, ], "nextToken": null, }
-
-
Para obter informações descritivas sobre o insight, execute o comando a seguir. Faça as seguintes modificações no comando, conforme necessário, e execute o comando modificado:
-
Substitua
region-code
pelo código da sua região da AWS. -
Substitua
a1b2c3d4-5678-90ab-cdef-EXAMPLE22222
por um ID de insight recuperado da listagem dos insights do cluster. -
Substitua
my-cluster
pelo nome do cluster.aws eks describe-insight --region region-code --id
a1b2c3d4-5678-90ab-cdef-EXAMPLE22222
--cluster-name my-clusterVeja um exemplo de saída abaixo.
{ "insight": { "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222", "name": "Kubelet version skew", "category": "UPGRADE_READINESS", "kubernetesVersion": "1.27", "lastRefreshTime": 1734557309.000, "lastTransitionTime": 1734557309.000, "description": "Checks for kubelet versions of worker nodes in the cluster to see if upgrade would cause non compliance with supported Kubernetes kubelet version skew policy.", "insightStatus": { "status": "UNKNOWN", "reason": "Unable to determine status of node kubelet versions.", }, "recommendation": "Upgrade your worker nodes to match the Kubernetes version of your cluster control plane.", "additionalInfo": { "Kubelet version skew policy": "https://kubernetes.io/releases/version-skew-policy/#kubelet", "Updating a managed node group": "https://docs.aws.amazon.com/eks/latest/userguide/update-managed-node-group.html", }, "resources": [], "categorySpecificSummary": { "deprecationDetails": [], "addonCompatibilityDetails": [] }, }, }
-