# Task and web pod do not have annotations added

**URL:** <https://forum.ansible.com/t/task-and-web-pod-do-not-have-annotations-added/3454>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [January 24, 2024, 8:00am UTC](https://forum.ansible.com/t/task-and-web-pod-do-not-have-annotations-added/3454 "2024-01-24T08:00:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![x980707x](https://avatars.discourse-cdn.com/v4/letter/x/ecae2f/32.png) [@x980707x](https://forum.ansible.com/u/x980707x)\
**Post date:** [January 24, 2024, 8:00am UTC](https://forum.ansible.com/t/task-and-web-pod-do-not-have-annotations-added/3454/1 "2024-01-24T08:00:54Z")

</div>

I am using a Helm chart and have added it as follows, but annotations are not being added to the pod. Other configurations like node\_selector are working fine. What should I check?

```auto
AWX:
  enabled: true
  name: awx
  labels:
  spec:
    annotations: |
      prometheus.io/port: 8200
      prometheus.io/scrape: true
      prometheus.io/path: /v1/sys/metrics
    task_annotations: |
      prometheus.io/port: 8200
      prometheus.io/scrape: true
      prometheus.io/path: /v1/sys/metrics
    web_annotations: |
      prometheus.io/port: 8200
      prometheus.io/scrape: true
      prometheus.io/path: /v1/sys/metrics
.
.
.

```

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [January 24, 2024, 7:50pm UTC](https://forum.ansible.com/t/task-and-web-pod-do-not-have-annotations-added/3454/2 "2024-01-24T19:50:42Z")

</div>

can you provide the awx resource it self

we want to verify if its a “helm-chart” problem or the awx-operator problem

and your web and task container deployment

---

<div class="post-metadata">

**Author:** ![x980707x](https://avatars.discourse-cdn.com/v4/letter/x/ecae2f/32.png) [@x980707x](https://forum.ansible.com/u/x980707x)\
**Post date:** [January 25, 2024, 12:12am UTC](https://forum.ansible.com/t/task-and-web-pod-do-not-have-annotations-added/3454/3 "2024-01-25T00:12:15Z")

</div>

Hi, @TheRealHaoLiu

What is an AWX resource? What can I provide that would be helpful?  
Also, I am using a downloaded helm chart template, and I have made some modifications to add sgp and nodeselector in the deployment-awx-operator-controller-manager.yaml.  
However, I can’t understand why the web\_annotations and task\_annotations don’t seem to be relevant or why they are not being applied.

Thanks!

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [January 25, 2024, 6:46pm UTC](https://forum.ansible.com/t/task-and-web-pod-do-not-have-annotations-added/3454/4 "2024-01-25T18:46:18Z")

</div>

one of the things that helm chart create would be a custom resource call AWX

can you do a `kubectl get awx -A` and than from the output do a `kubectl get awx -n <namespace> <name> -o yaml` so we can take a look at what the helm chart templated out and created

---

<div class="post-metadata">

**Author:** ![x980707x](https://avatars.discourse-cdn.com/v4/letter/x/ecae2f/32.png) [@x980707x](https://forum.ansible.com/u/x980707x)\
**Post date:** [January 26, 2024, 12:37am UTC](https://forum.ansible.com/t/task-and-web-pod-do-not-have-annotations-added/3454/5 "2024-01-26T00:37:19Z")

</div>

Hi @TheRealHaoLiu  
Is the following setting correct?  
I have deleted some ARNs and IDs.  
Thanks!

```auto
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  creationTimestamp: "2024-01-24T06:01:23Z"
  generation: 2
  labels:
    app.kubernetes.io/component: awx
    app.kubernetes.io/managed-by: awx-operator
    app.kubernetes.io/operator-version: 2.10.0
    app.kubernetes.io/part-of: awx
    argocd.argoproj.io/instance: ansible-awx-dev
  name: awx
  namespace: ansible-awx
  resourceVersion: "305361296"
  uid: 82b74992-fd01-49e1-adb0-f504d00bb097
spec:
  additional_labels:
  - awx.in/service
  - awx.in/role
  - awx.in/zone
  admin_user: admin
  annotations: |
    prometheus.io/port: 8200
    prometheus.io/scrape: true
    prometheus.io/path: /v1/sys/metrics
  auto_upgrade: true
  control_plane_ee_image: awx.in/quay/ansible/awx-ee:latest
  create_preload_data: true
  ee_images:
  - image: awx.in/quay/ansible/awx-ee:latest
    name: AWX EE
  garbage_collect_secrets: false
  hostname: awx.dev.in
  image: awx.in/quay/ansible/awx
  image_pull_policy: Always
  image_version: 23.6.0
  ingress_annotations: |
    kubernetes.io/ingress.class: alb
    alb.ingress.kubernetes.io/scheme: internal
    alb.ingress.kubernetes.io/target-type: ip
    alb.ingress.kubernetes.io/security-groups:
    alb.ingress.kubernetes.io/tags:
    alb.ingress.kubernetes.io/certificate-arn: 
    alb.ingress.kubernetes.io/subnets: 
    alb.ingress.kubernetes.io/healthcheck-path: /
    alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
    alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
  ingress_type: ingress
  ipv6_disabled: false
  loadbalancer_ip: ""
  loadbalancer_port: 80
  loadbalancer_protocol: http
  no_log: false
  node_selector: |
    awx.in/nodegroup-type: m-private
  postgres_configuration_secret: awx-postgres-configuration
  postgres_keepalives: true
  postgres_keepalives_count: 5
  postgres_keepalives_idle: 5
  postgres_keepalives_interval: 5
  projects_persistence: false
  projects_storage_access_mode: ReadWriteMany
  projects_storage_size: 8Gi
  redis_image: awx.in/redis
  redis_image_version: latest
  replicas: 1
  route_tls_termination_mechanism: Edge
  security_context_settings:
    fsGroup: 0
    fsGroupChangePolicy: OnRootMismatch
    runAsGroup: 0
    runAsUser: 0
  set_self_labels: true
  task_annotations: |
    prometheus.io/port: 8200
    prometheus.io/scrape: true
    prometheus.io/path: /v1/sys/metrics
  task_privileged: false
  web_annotations: |
    prometheus.io/port: 8200
    prometheus.io/scrape: true
    prometheus.io/path: /v1/sys/metrics
  web_node_selector: |
    awx.in/nodegroup-type: m-private
status:
  adminPasswordSecret: awx-admin-password
  adminUser: admin
  broadcastWebsocketSecret: awx-broadcast-websocket
  conditions:
  - lastTransitionTime: "2024-01-24T06:03:58Z"
    reason: ""
    status: "False"
    type: Successful
  - lastTransitionTime: "2024-01-26T00:23:42Z"
    reason: Failed
    status: "False"
    type: Failure
  - lastTransitionTime: "2024-01-26T00:23:42Z"
    reason: Running
    status: "True"
    type: Running
  image: awx.in/quay/ansible/awx:23.6.0
  postgresConfigurationSecret: awx-postgres-configuration
  secretKeySecret: awx-secret-key
  version: 23.6.0

```
