We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
It is not possible to add custom ContainerPorts for the awx-task container. I am trying to add the ContainerPort directly in task.yaml.j2 as below.
- image: '{{ _image }}' name: '{{ ansible_operator_meta.name }}-task' imagePullPolicy: '{{ image_pull_policy }}'
{% if task-ports %} ports: {% for port in task-ports %} - name: {{ port.name }} containerPort: {{ port.containerPort }} protocol: {{ port.protocol | default('TCP') }} {% endfor %} {% endif %}
I am passing the input in defaults/main.yml . task-ports:
and it does not work. Looks like there is no way to add custom ports to the container level aline task_resource and web_resource. Please check.
2.12.1
23.8.1
kubernetes
v1.31.3-gke.1006000
yes
I added the below entries from ports: in the task.yaml.j2 - image: '{{ _image }}' name: '{{ ansible_operator_meta.name }}-task' imagePullPolicy: '{{ image_pull_policy }}' {% if task-ports %} ports: {% for port in task-ports %} - name: {{ port.name }} containerPort: {{ port.containerPort }} protocol: {{ port.protocol | default('TCP') }} {% endfor %} {% endif %}
and in roles/defaults/main.yaml task-ports:
For the awx-task container I should see two ports 27199 and 27200 as shown in the attached image.
The ports are not displayed/opened.
awx.yaml
apiVersion: awx.ansible.com/v1beta1 kind: AWX metadata: name: awx namespace: awx spec: task_replicas: 2 admin_user: admin admin_password_secret: awx-admin-password service_type: NodePort ingress_type: none no_log: false
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please confirm the following
Bug Summary
Hi,
It is not possible to add custom ContainerPorts for the awx-task container. I am trying to add the ContainerPort directly in task.yaml.j2 as below.
{% if task-ports %}
ports:
{% for port in task-ports %}
- name: {{ port.name }}
containerPort: {{ port.containerPort }}
protocol: {{ port.protocol | default('TCP') }}
{% endfor %}
{% endif %}
I am passing the input in defaults/main.yml .
task-ports:
containerPort: 27199
containerPort: 27200
and it does not work. Looks like there is no way to add custom ports to the container level aline task_resource and web_resource. Please check.
AWX Operator version
2.12.1
AWX version
23.8.1
Kubernetes platform
kubernetes
Kubernetes/Platform version
v1.31.3-gke.1006000
Modifications
yes
Steps to reproduce
I added the below entries from ports: in the task.yaml.j2
- image: '{{ _image }}'
name: '{{ ansible_operator_meta.name }}-task'
imagePullPolicy: '{{ image_pull_policy }}'
{% if task-ports %}
ports:
{% for port in task-ports %}
- name: {{ port.name }}
containerPort: {{ port.containerPort }}
protocol: {{ port.protocol | default('TCP') }}
{% endfor %}
{% endif %}
and in roles/defaults/main.yaml
task-ports:
containerPort: 27199
containerPort: 27200
Expected results
For the awx-task container I should see two ports 27199 and 27200 as shown in the attached image.
Actual results
The ports are not displayed/opened.
Additional information
awx.yaml
apiVersion: v1
kind: Secret
metadata:
name: awx-admin-password
namespace: awx
type: Opaque
data:
password: YWRtaW4=
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
name: awx
namespace: awx
spec:
task_replicas: 2
admin_user: admin
admin_password_secret: awx-admin-password
service_type: NodePort
ingress_type: none
no_log: false
Operator Logs
No response
The text was updated successfully, but these errors were encountered: