Index template and index pattern

Does an index template's index pattern apply to datastreams (if any) or to indexes attached to the datastream?

datastream index are start with .ds and yes template setting will be apply to new index when it gets created. you also need ILM policy with it.