'Permission error while deploying consul helm chart on openshift

I am new to openshift and trying to deploy consul on openshift using helm chart. I am following steps mentioned at consul website: https://github.com/hashicorp/consul-k8s but getting error after the final step. With error message I can understand that it is something to do with permission on openshift but not able to solve the problem. Can anyone please help me with this issue?

These are the resources which are getting created after installation.

enter image description here

and this is the error message I see when I run describe command :

Warning  FailedCreate  5m3s (x2014 over 8d)  statefulset-controller  create Pod consul- 
server-0 in StatefulSet consul-server failed error: pods "consul-server-0" is forbidden: 
unable to validate against any security context constraint: [provider "anyuid": 
Forbidden: not usable by user or serviceaccount, provider "nginx-ingress-scc": 
Forbidden: not usable by user or serviceaccount, provider restricted: 

.spec.securityContext.fsGroup: Invalid value: []int64{1000}: 1000 is not an allowed group, spec.containers[0].securityContext.runAsUser: Invalid value: 100: must be in the ranges: [1000720000, 1000729999], provider "nonroot": Forbidden: not usable by user or serviceaccount, provider "hostmount-anyuid": Forbidden: not usable by user or serviceaccount, provider "machine-api-termination-handler": Forbidden: not usable by user or serviceaccount, provider "hostnetwork": Forbidden: not usable by user or serviceaccount, provider "hostaccess": Forbidden: not usable by user or serviceaccount, provider "node-exporter": Forbidden: not usable by user or serviceaccount, provider "privileged": Forbidden: not usable by user or serviceaccount]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source