To ignore hostkey checking for a subnet (i.e. when hosts got changed/provisioned/scaled often) use the following snippet:
# ~/.ssh/config Host 172.18.* StrictHostKeyChecking no UserKnownHostsFile=/dev/null
But use with care, in general hostkey checking is a good idea!