Task and web pod do not have annotations added

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?

  enabled: true
  name: awx
    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

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

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.


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

1 Like

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

apiVersion: awx.ansible.com/v1beta1
kind: AWX
  creationTimestamp: "2024-01-24T06:01:23Z"
  generation: 2
    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
  - 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
  - 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/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
    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
  adminPasswordSecret: awx-admin-password
  adminUser: admin
  broadcastWebsocketSecret: awx-broadcast-websocket
  - 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