# Port mapping field on workload

**URL:** <https://forums.suse.com/t/port-mapping-field-on-workload/11539>\
**Category:** SUSE Rancher Prime\
**Created:** [August 21, 2018, 8:43am UTC](https://forums.suse.com/t/port-mapping-field-on-workload/11539 "2018-08-21T08:43:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neorim](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@neorim](https://forums.suse.com/u/neorim)\
**Post date:** [August 21, 2018, 8:43am UTC](https://forums.suse.com/t/port-mapping-field-on-workload/11539/1 "2018-08-21T08:43:10Z")

</div>

Hello.  
When I’ve created the Workload manually - there are “Ports” section with description of port, protocol, mapping type and listening port.  
But when i am trying to create App from custom rancher chart and exposing the port via NodePort - field “As a” contains “n/a” value and “On listening port” contains “0” value.  
And in the UI on the Workloads page i can see that port is mapped.  
If I edit manually and assign these fields, the field [field.сattle.io/ports](http://field.xn--attle-0ye.io/ports) appears in the metadata-\> annotation:  
[[{“containerPort”:8080,“dnsName”:"",“kind”:“NodePort”,“name”:"",“protocol”:“TCP”,“sourcePort”:8080}]]  
How to edit my rancher chart so that the fields are filled correctly?
