Port mapping field on workload

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 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?