In same declarative pipeline script container does not create if specified as yaml. It . gets created if specified using containerTemplate.
See attached log and pipeline script.