If the entire cluster is in a red state you probably do not have an elected master node. In this case you will not be able to write to the cluster as it could lead to data loss. This is therefore expected.
Why is your cluster in a red state in the first place?