First I gonna apologize with my bad English. So I just use mongo atlas for first time, My app is use k8s and I connect to mongo with query string that Mongo atlas provide to me , After connect I got error like this
panic: server selection error: context deadline exceeded, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: URL:27017, Type: Unknown, Last error: connection() error occurred during connection handshake: dial tcp 192.168.248.2:27017: i/o timeout }, { Addr: URL:27017, Type: Unknown, Last error: connection() error occurred during connection handshake: dial tcp 192.168.248.3:27017: i/o timeout }, { Addr: URL:27017, Type: Unknown, Last error: connection() error occurred during connection handshake: dial tcp 192.168.248.4:27017: i/o timeout }, ] }