喜讯是什么意思| 脚心痒是什么原因引起的| 多吃西瓜有什么好处| 三次元是什么| 耳膜炎是什么原因引起的| 尿酸高吃什么能降| 梦见打老鼠是什么征兆| 女人阴部黑是什么原因| meq是什么单位| 脸上掉皮是什么原因| 察言观色是什么意思| 血热吃什么药好| 低血压有什么危害| 眼珠子发黄是什么原因| 依托考昔片是什么药| 金益什么字| 旺是什么意思| 胸ct和肺ct有什么区别| 血尿是什么原因| 夏至吃什么好| 甘油三酯低是什么原因| ami是什么意思| 人为什么要抽烟| 稻谷什么时候成熟| 积食吃什么| 貘是什么动物| 腿麻脚麻用什么药能治| 身骑白马是什么方言| 舌头有问题应该挂什么科| 长生不老是什么意思| 痈疡是什么意思| more是什么意思| 明年什么生肖| 蛋白质阳性什么意思| 痛风吃什么中药最有效| 9月29是什么星座| 什么叫囊性结节| 荷叶配什么减肥效果好| wtf什么意思| 脖子淋巴结肿大是什么原因| 天生一对成伴侣是什么生肖| 卡罗莱手表是什么档次| 上朝是什么意思| 楼台是什么意思| 知了代表什么生肖| 肺癌有什么症状| 睾丸胀痛什么原因| 吃什么有奶水| 生长纹是什么| 折耳根是什么| ck属于什么档次| 黄芪的读音是什么| 4090是什么意思| 周遭是什么意思| 快照是什么意思| 海啸是什么意思| 猫咪喜欢吃什么| 子宫下垂吃什么药| 菜心又叫什么菜| 老是犯困想睡觉是什么原因| 脖子变粗了是什么原因| 超市属于什么行业| 水怡是什么| 烫伤抹什么药| 部委是什么意思| 男人性功能不好吃什么药| 中元节是什么节| 他不懂你的心假装冷静是什么歌| 替身是什么意思| 相亲是什么意思| 溶血性黄疸是什么原因引起的| 初三什么时候毕业| 阿司匹林主治什么病| 安宫牛黄丸什么时候吃| 蹦蹦跳跳的动物是什么生肖| 622188开头是什么银行| 香蕉和什么一起吃能减肥| 戊肝抗体igg阳性是什么意思| 野生甲鱼吃什么| 血常规五项能检查出什么病| 脚脱皮是什么原因| 肺结核可以做什么运动| 河南为什么简称豫| 做梦飞起来了是什么兆头| 手指头麻木吃什么药| 白头发挂什么科| 冰冻三尺非一日之寒什么意思| 我到底是什么| 印度阿三是什么意思| 三点水山今读什么| 氟西汀是什么药| 何许人也是什么意思| 肠胃炎吃什么水果比较好| 早上起来眼皮肿是什么原因| 父亲节是什么时候| 走路腿软没劲是什么原因引起的| 肺结节有什么症状| 一直以来是什么意思| 盎司是什么意思| 用脚尖走路有什么好处| 胎监什么时候开始做| gg是什么牌子| 风起云涌是什么生肖| 后囟门什么时候闭合| 讹人是什么意思| 姜子牙为什么没有封神| 什么是菊粉| 口干舌燥挂什么科| 夏天穿什么衣服比较凉爽| 糖耐是检查什么| 缺乏维生素b12的症状是什么| 尿酸高能吃什么肉| 荷兰的国花是什么花| 怕冷的女人是什么原因| 喝枸杞子泡水有什么好处和坏处| 小孩吃鼻屎是什么原因| 年金是什么| 尿渗透压低是什么原因| 考试穿什么颜色最吉利| 肝郁脾虚吃什么药| 男人下面有异味什么原因| 盆腔炎检查什么项目| 床榻是什么意思| 反流性食管炎是什么症状| 清明节是什么时候| 血压低吃什么药见效快| 人中深的女人代表什么| 湿气重看中医挂什么科| 变化不著是什么意思| 要注意什么| 百依百顺是什么生肖| 蝙蝠飞进家里预示什么| 嗓子痒咳嗽是什么原因| 诊刮是什么手术| 沅字的寓意是什么| 一笑倾城是什么意思| 前列腺炎用什么药| 金蝉花是什么| 绿豆汤不能和什么一起吃| 感冒吃什么水果| 头发长的慢是什么原因| 肠易激综合征吃什么药好| 陶渊明是什么朝代| 淋巴细胞降低说明什么| 心脏官能症吃什么药| 狗狗为什么喜欢舔人| 起床头疼是什么原因| 女人吃什么新陈代谢快| lee中文叫什么| 1226是什么星座| 吃什么解暑| 兰州有什么特产| 1206是什么星座| 鬼迷心窍是什么意思| 什么样的山| 一落千丈是什么生肖| 水痘长什么样| 公丁香和母丁香有什么区别| 芒果可以做什么美食| 门槛费是什么意思| 男人精子少吃什么药| 不领情是什么意思| 双子是什么意思| 甘油三酯高不能吃什么| 花生什么时候成熟| 芥蒂是什么意思| 天丝是什么成分| 低血钾有什么症状| 低钾有什么症状和危害| 党费什么时候开始交| 最贵的烟是什么| 鬼子来了为什么被禁| 泡沫尿是什么病| 什么是消炎药| 两对半是什么意思| 随便你是什么意思| 皮肤科属于什么科室| 火命人适合什么颜色| 做什么梦暗示你怀孕了| 漂流需要准备什么东西| 献血有什么好处| 心心相印是什么生肖| 一个口一个且念什么| 白里透红的透是什么意思| 茶水费是什么意思| 感冒了喝什么汤好| 农历5月17日是什么星座| 吃芒果有什么好处| 放疗化疗有什么区别| 瓜皮什么意思| 幻听是什么症状| 越来越瘦是什么原因| 狗狗中毒了用什么办法可以解毒| rads是什么意思| 什么是共产主义社会| 盆腔炎有什么明显症状| 人民检察院是国家的什么机关| c罗全名叫什么| 甲抗是什么原因引起的| 大便很黄是什么原因| 9月28是什么星座| 植物神经紊乱看什么科| 舌头溃疡吃什么水果| 腰酸是什么病的前兆| 逝者如斯夫是什么意思| 小孩坐飞机需要什么证件| 6.5是什么星座| 肉包子打狗的歇后语是什么| 什么生肖没有牙齿| r表示什么| 为什么眼睛会红| 袋鼠属于什么类动物| 桂圆补什么| 19岁属什么的生肖| 颈椎病最怕干什么活| 茉莉花茶有什么作用| 什么车最长脑筋急转弯| 做梦吃鱼是什么意思| 指甲黑线是什么原因| 毛囊长什么样子| 胆囊肿是什么病严重吗| 尿频是什么原因| 炒菜用什么锅好| 肝囊肿是什么原因引起的| 头发突然秃了一块是什么原因| 蒙脱石散什么时候吃| 桃和什么不能一起吃| 什么水果含糖量最低| 穆萨是什么意思| 每天头疼是什么原因引起的| 前列腺增生有什么症状| 抽烟头晕是什么原因| 6月21号是什么日子| 乙肝45阳性什么意思| 手脚经常发麻是什么原因| 翻来覆去的覆什么意思| 梦到妈妈怀孕什么预兆| 嗓子疼看什么科室| 胃炎吃什么药好使| 肝硬化吃什么药| 小郡肝是什么部位| 佝偻病是什么意思| 吊孝是什么意思| 为什么蛋皮会痒| 舞蹈考级有什么用| 狗仔队是什么意思| 两点一线是什么意思| 五月17号是什么星座| 马来西亚说什么语言| 屌丝是什么| 乳房疼挂什么科| 梦到前女友征兆是什么| 女生月经迟迟不来是什么原因| 脚底板热是什么原因| 夏天的诗句有什么| mrd是什么| 脾胃气滞吃什么中成药| 鹿鞭是什么| s925是什么意思| 灵芝孢子粉有什么功效| k值是什么意思| 心脏跳动过快吃什么药| 肾寒吃什么中成药| 为什么喝纯牛奶会拉肚子| 百度

rpr是什么检查项目

百度 ◎年轻歌手深情演绎唤起观众强烈共鸣周总理是一位充满革命情感的伟人。

For enhanced security, the Datadog Operator can retrieve Datadog credentials (API key and application key) using Secrets.

Setting up Secrets

Choose one of the following methods to set up Secrets:

Configure plain credentials in the DatadogAgent resource

This method is recommended for testing purposes only.

Add your API and application keys to the DatadogAgent spec:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    credentials:
      apiKey: <DATADOG_API_KEY>
      appKey: <DATADOG_APP_KEY>
  # ...

The credentials provided here are stored in a Secret created by the Operator. By properly setting the RBAC on the DatadogAgent CRD, you can limit who is able to see those credentials.

Use Secret references

  1. Create your Secrets:

    apiVersion: v1
    kind: Secret
    metadata:
      name: datadog-api-secret
    data:
      api_key: <DATADOG_API_KEY>
    
    ---
    apiVersion: v1
    kind: Secret
    metadata:
      name: datadog-app-secret
    data:
      app_key: <DATADOG_APP_KEY>
    
  2. Provide the names of these Secrets in your DatadogAgent resource:

    apiVersion: datadoghq.com/v2alpha1
    kind: DatadogAgent
    metadata:
      name: datadog
    spec:
      global:
        credentials:
          apiSecret:
            secretName: datadog-api-secret
            keyName: api-key
          appSecret:
            secretName: datadog-app-secret
            keyName: app-key
      # ...
    

Note: You can also use the same Secret to store both credentials:

---
apiVersion: v1
kind: Secret
metadata:
  name: datadog-secret
data:
  api_key: <DATADOG_API_KEY>
  app_key: <DATADOG_APP_KEY>

Then, in your DatadogAgent resource:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    credentials:
      apiSecret:
        secretName: datadog-secret
        keyName: api-key
      appSecret:
        secretName: datadog-secret
        keyName: app-key
  # ...

Use the secret backend

The Datatog Operator is compatible with the secret backend.

Deploy the Datadog Operator with the secret backend

  1. Create a Datadog Operator container image that contains the secret backend command.

    If you’d like to build your own, the following Dockerfile example takes the latest image as the base image and copies the my-secret-backend.sh script file:

    FROM gcr.io/datadoghq/operator:latest
    COPY ./my-secret-backend.sh /my-secret-backend.sh
    RUN chmod 755 /my-secret-backend.sh
    

    Then, run:

    docker build -t datadog-operator-with-secret-backend:latest .
    
  2. Install or update the Datadog Operator deployment with the .Values.secretBackend.command parameter set to the secret backend command path (inside the container). If you are using a custom image, update the image.

    $ helm [install|upgrade] dd-operator --set "secretBackend.command=/my-secret-backend.sh" --set "image.repository=datadog-operator-with-secret-backend" ./chart/datadog-operator
    

Using the secret helper

Note: Requires Datadog Operator v0.5.0+.

Kubernetes supports exposing Secrets as files inside a pod. Datadog provides a helper script in the Datadog Operator image to read the Secrets from files.

  1. Mount the Secret in the Operator container. For example, you can mount it at /etc/secret-volume.

  2. Install or update the Datadog Operator deployment with the .Values.secretBackend.command parameter set to /readsecret.sh and the .Values.secretBackend.arguments parameter set to /etc/secret-volume:

    helm [install|upgrade] dd-operator --set "secretBackend.command=/readsecret.sh" --set "secretBackend.arguments=/etc/secret-volume" ./chart/datadog-operator
    

Deploying Agent components using the secret backend feature with the DatadogAgent

Note: Requires Datadog Operator v1.11+.

With a custom script

If you are using a custom script, create a Datadog Agent (or Cluster Agent) image and specify credentials using ENC[<placeholder>], and specify the secret backend command in spec.global.secretBackend.command:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    credentials:
      apiKey: ENC[<api-key-secret-id>]
      appKey: ENC[<app-key-secret-id>]
    secretBackend:
      command: "/my-secret-backend.sh"
  # ...

The environment variable DD_SECRET_BACKEND_COMMAND from this configuration is automatically applied to all the deployed components: node Agent, Cluster Agent, and Cluster Checks Runners. Ensure the image you are using for all the components includes your command.

With the helper function

For convenience, the Datadog Agent and its sibling Cluster Agent images include a readsecret_multiple_providers.sh helper function that can be used to read from both files as well as Kubernetes Secrets. After you create the Secret, set spec.global.secretBackend.command to "/readsecret_multiple_providers.sh".

For instance, to use the secret backend for the Agent and Cluster Agent, create a Secret called “test-secret”:

kubectl create secret generic test-secret --from-literal=api_key='<api-key>' --from-literal=app_key='<app-key>'

And then set the DatadogAgent spec:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    secretBackend:
      command: "/readsecret_multiple_providers.sh"
    credentials:
      apiKey: ENC[k8s_secret@default/test-secret/api_key]
      appKey: ENC[k8s_secret@default/test-secret/app_key]

Additional notes

ServiceAccount permissions

The "/readsecret_multiple_providers.sh" helper enables the Agent to directly read Kubernetes Secrets across both its own and other namespaces. Ensure that the associated ServiceAccount has the necessary permissions by assigning the appropriate Roles and RoleBindings. You can set these manually, or by using the following options:

  • global.secretBackend.enableGlobalPermissions: Determines if a ClusterRole is created that enables the Agents to read all Kubernetes Secrets.

    apiVersion: datadoghq.com/v2alpha1
    kind: DatadogAgent
    metadata:
      name: datadog
    spec:
      global:
        secretBackend:
          command: "/readsecret_multiple_providers.sh"
          enableGlobalPermissions: true
    # ...
    
  • global.secretBackend.roles: Replaces enableGlobalPermissions, detailing the list of namespace/secrets to which the Agents should have access.

    apiVersion: datadoghq.com/v2alpha1
    kind: DatadogAgent
    metadata:
      name: datadog
    spec:
      global:
        secretBackend:
          command: "/readsecret_multiple_providers.sh"
          roles:
          - namespace: rabbitmq-system
            secrets:
            - "rabbitmqcluster-sample-default-user"
    # ...
    

    In this example, a Role is created granting read access to the Secret rabbitmqcluster-sample-default-user in the rabbitmq-system namespace.

    Note: Each namespace in the roles list must also be configured in the WATCH_NAMESPACE or DD_AGENT_WATCH_NAMESPACE environment variable on the Datadog Operator deployment.

Secret backend configuration options

For the Agent and Cluster Agent, there are other configuration options for the secret backend command:

  • global.secretBackend.args: These arguments are supplied to the command when the Agent executes the secret backend command.
  • global.secretBackend.timeout: Secret backend execution timeout in seconds. The default value is 30 seconds.

For versions prior to Operator 1.11, spec.global.secretBackend is unavailable. You should follow these instructions instead.

肾积水是什么原因造成的 和什么细什么的成语 昔人是什么意思 蝉喜欢吃什么 嘴紫是什么原因
青蛙什么 mpa是什么意思 混合痔什么症状 大白条是什么鱼 杀子痣是什么意思
lalpina是什么牌子 月经和怀孕的症状有什么不同 世界上什么动物牙齿最多 庶子是什么意思 老是流鼻血是什么原因
雅戈尔男装什么档次 谷草转氨酶高吃什么药 眼袋肿是什么原因 佛口蛇心是什么生肖 牛肉和什么包饺子好吃
713是什么星座hcv8jop6ns7r.cn 鱼鳔是什么hlguo.com 鲁班发明了什么东西hcv7jop9ns8r.cn 火锅油碟是什么油qingzhougame.com 流水是什么hcv9jop0ns1r.cn
针眼是什么原因引起的bjcbxg.com arf是什么意思hcv8jop7ns8r.cn 乳铁蛋白对宝宝有什么好处hlguo.com marni是什么品牌520myf.com 丁二醇是什么hcv9jop1ns8r.cn
宫腔内钙化灶是什么意思hcv8jop0ns0r.cn 焦作有什么大学hcv9jop5ns4r.cn 为什么日语hcv9jop0ns1r.cn 什么是梅毒hcv9jop5ns4r.cn 7岁属什么hcv9jop7ns0r.cn
mint什么颜色hcv8jop7ns9r.cn 什么是精神病tiangongnft.com 动物的尾巴有什么用处aiwuzhiyu.com 什么样的女人容易出轨hcv8jop8ns2r.cn 风热感冒吃什么药hcv7jop7ns1r.cn
百度