AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1040386
Accepted
Prashant Gupta
Prashant Gupta
Asked: 2020-10-29 07:36:27 +0800 CST2020-10-29 07:36:27 +0800 CST 2020-10-29 07:36:27 +0800 CST

是否可以使用 terraform 在 AWS EKS 集群上部署 Datadog 代理

  • 772

我希望了解是否有人可以指导我如何在我的 AWS EKS 集群上安装 Datadog 代理作为 pod。我可以使用 kubectl 命令完成我的要求。

但是在这里,我正在寻找一种可能的解决方案来从 Terraform 脚本中执行相同的工作,或者是否有人可以建议任何其他自动化方式来在我的 eks 集群上部署 Datadog 代理。

cluster terraform amazon-eks datadog
  • 1 1 个回答
  • 1397 Views

1 个回答

  • Voted
  1. Best Answer
    Henrik Pingel
    2020-10-29T09:20:58+08:002020-10-29T09:20:58+08:00

    用于 Terraform的Helm Provider可用于将包部署到 Kubernetes。这个GitHub 问题包含一个如何使用它来部署 Datadog 代理的示例:

    resource "helm_release" "datadog" {
      name          = "datadog"
      version       = "1.38.2"
      chart         = "stable/datadog"
      namespace     = kubernetes_namespace.datadog.metadata.0.name
      recreate_pods = true
      force_update  = true
    
      values = [<<YAML
    image:
      repository: datadog/agent
      tag: 6.14.1-jmx
      pullPolicy: IfNotPresent
    clusterAgent:
      containerName: cluster-agent
      image:
        repository: datadog/cluster-agent
        tag: 1.3.1
        pullPolicy: IfNotPresent
      enabled: true
      metricsProvider:
        enabled: true
      replicas: 1
      resources:
        requests:
          cpu: 200m
          memory: 256Mi
        limits:
          cpu: 400m
          memory: 512Mi
    datadog:
      apiKeyExistingSecret: datadog-api-key
      apmEnabled: true
      appKeyExistingSecret: datadog-app-key
      collectEvents: true
      env:
        - name: DD_APM_IGNORE_RESOURCES
          value: "GET /webjars/.*, GET /v2/api-docs, GET /swagger-resources, GET /actuator/health, GET /_health, GET /manifest"
        - name: DD_KUBELET_TLS_VERIFY
          value: "false"
        - name: DD_COLLECT_EC2_TAGS
          value: "true"
        - name: DD_CUSTOM_SENSITIVE_WORDS
          value: "authorization"
        - name: DD_LOGS_CONFIG_K8S_CONTAINER_USE_FILE
          value: "true"
      leaderElection: true
      logsConfigContainerCollectAll: true
      logsEnabled: true
      logLevel: INFO
      name: datadog
      nonLocalTraffic: true
      processAgentEnabled: true
      resources:
        requests:
          cpu: 500m
          memory: 512Mi
        limits:
          cpu: 2000m
          memory: 2Gi
      tags:
        - env:${var.environment}
        - cluster:<my_cluster>
      confd:
        disk.yaml: |-
            init_config:
            instances:
              - use_mount: true
                mount_point_whitelist:
                  - /$
        vault.yaml: |-
            init_config:
            instances:
              - api_url: https://<some_vault_url>/v1
        istio.yaml: |-
            init_config:
            instances:
              - istio_mesh_endpoint: http://istio-telemetry.istio-system:42422/metrics
                mixer_endpoint: http://istio-telemetry.istio-system:15014/metrics
                galley_endpoint: http://istio-galley.istio-system:15014/metrics
                pilot_endpoint: http://istio-pilot.istio-system:15014/metrics
                citadel_endpoint: http://istio-citadel.istio-system:15014/metrics
                send_histograms_buckets: true
                send_monotonic_counter: true
      useCriSocketVolume: true
    daemonset:
      enabled: true
      tolerations:
        - key: "node-role.kubernetes.io/controlplane"
          operator: "Exists"
          effect: "NoSchedule"
        - key: "node-role.kubernetes.io/controlplane"
          operator: "Exists"
          effect: "NoExecute"
        - key: "node-role.kubernetes.io/etcd"
          operator: "Exists"
          effect: "NoExecute"
        - key: "node-role.kubernetes.io/<node_taint>"
          operator: "Exists"
          effect: "NoSchedule"
      useConfigMap: true
      customAgentConfig:
        listeners:
          - name: kubelet
        config_providers:
          - name: kubelet
            polling: true
        apm_config:
          enabled: false
          apm_non_local_traffic: true
        jmx_use_cgroup_memory_limit: true
        logs_config:
          open_files_limit: 500
      updateStrategy:
         type: RollingUpdate
      useHostPort: true
    kubeStateMetrics:
      enabled: true
    kube-state-metrics:
      rbac:
        create: false
      serviceAccount:
        create: false
        name: "${kubernetes_service_account.kube-state-metrics.metadata.0.name}"
    rbac:
      create: false
      serviceAccountName: "${kubernetes_service_account.datadog-cluster-agent.metadata.0.name}"
    YAML
      ]
    
      lifecycle {
        ignore_changes = [
          keyring,
        ]
      }
    }
    
    • 1

相关问题

  • 是否有可能从多台计算机中创建一台速度更快的计算机?

  • LVS 集群帮助

  • 如何从 Windows 2008 故障转移群集中删除“额外”(不需要的)网络?

  • 如何在低负载期间关闭(关闭)集群节点?

  • 使用 Nagios 监视 Novell 集群服务

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve