Yes, the postgresql-k8s charm is a drop-in replacement, talking the same relation protocols. PostgreSQL k8s Charm has the details. A few relation setup race conditions have been squashed, which I could only reproduce with k8s client applications (egress-subnets and remote unit name not available during initial relation setup).