How to extract IPV6 via fieldRef and fieldPath

Asking for help? Comment out what you need so we can get more information to help you!

I have a dual stack Pod with the following IPs assigned.

status:
podIP: 10.240.2.35
podIPs:

  • ip: 10.240.2.35
  • ip: fc00:0:0:5::26

I need the IPv6 available as environment variable to be able to create a self signed cert with proper SAN. We have this working with IPv4(Single Stack) with the following syntax.

valueFrom:
fieldRef:
fieldPath: status.podIP

I would like to know how to do the same in case of dual stack where there are two IPs?