View a markdown version of this page

(Facultatif) Course à pied AWS AppConfig en tant que DaemonSet dans Amazon EKS - AWS AppConfig

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

(Facultatif) Course à pied AWS AppConfig en tant que DaemonSet dans Amazon EKS

Avec Amazon EKS, vous pouvez exécuter AWS AppConfig Agent sous forme de sidecar, ce qui se traduit par un contenant d'agent par module d'application. Ou, si tu préfères, tu peux courir AWS AppConfig Agent en tant que DaemonSet, ce qui se traduit par un contenant d'agent par nœud de votre cluster.

Note

Si tu cours AWS AppConfig Agent en tant que DaemonSet, l'agent s'exécute dans un module distinct, ce qui signifie que vous ne pouvez pas y accéder en appelant localhost. Vous devez injecter ou découvrir l'adresse IP du pod de l'agent pour l'appeler.

Pour courir AWS AppConfig Agent en tant que DaemonSet, créez un fichier manifeste avec le contenu suivant. Remplacer highlighted texte contenant des informations sur votre application et votre environnement. Pour Région AWS, spécifiez un Région AWS code (par exemple, us-west-1).

apiVersion: apps/v1 kind: DaemonSet metadata: name: aws-appconfig-agent namespace: my_namespace labels: app: my_application_label spec: selector: matchLabels: app: my_application_label template: metadata: labels: app: my_application_label spec: containers: - name: aws-appconfig-agent image: public.ecr.aws/aws-appconfig/aws-appconfig-agent:2.x ports: - name: http containerPort: 2772 protocol: TCP env: - name: SERVICE_REGION value: Région AWS imagePullPolicy: IfNotPresent # set a high priority class to ensure the agent is running on every node priorityClassName: system-node-critical

Exécutez la commande suivante pour appliquer AWS AppConfig Agent DaemonSet à votre cluster. Remplacer aws_appconfig_agent_daemonset avec le nom de votre DaemonSet manifeste.

kubectl apply -f aws_appconfig_agent_daemonset.yml