I am trying to install consul on openshift okd according to this link Deploy Consul on RedHat OpenShift | Consul - HashiCorp Learn. But
"Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: SecurityContextConstraints "consul-client" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "consul"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "consul"
I am getting an error. I am attaching the yaml file below. Can you help me?
global:
name: consul
datacenter: dc1
openshift:
enabled: true
metadata:
annotations:
meta.helm.sh/release-name: consul
meta.helm.sh/release-namespace: consul
labels:
app.kubernetes.io/managed-by: Helm
server:
replicas: 1
bootstrapExpect: 1
disruptionBudget:
enabled: true
maxUnavailable: 0
client:
enabled: true
grpc: true
ui:
enabled: true
connectInject:
enabled: true
default: true
controller:
enabled: true
volumeMounts:
name: extra-config
mountPath: /consul/extra-config
volumes:
name: extra-config
emptyDir: {}