bank-vaults / bank-vaults

A Vault swiss-army knife: A CLI tool to init, unseal and configure Vault (auth methods, secret engines).
https://bank-vaults.dev
Apache License 2.0
2.03k stars 466 forks source link

Error create/update ingress on OKD #1315

Open abdiali9617 opened 3 years ago

abdiali9617 commented 3 years ago

Bugs should be filed for issues encountered whilst operating bank-vaults. You should first attempt to resolve your issues through the community support channels, e.g. Slack, in order to rule out individual configuration errors. Please provide as much detail as possible.

Describe the bug: When Installing the operator the vault pod crashes and has the following error message

Expected behaviour: The expected behave is for all the pods to be running successfully

Steps to reproduce the bug: Run the following commands to reproduce the bug

Create environment

kubectl create namespace banzai-vault

Install the operator

helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com helm upgrade --install vault-operator banzaicloud-stable/vault-operator

Create a Vault instance with the Vault CR

kubectl apply -f https://raw.githubusercontent.com/banzaicloud/bank-vaults/master/operator/deploy/rbac.yaml kubectl apply -f https://raw.githubusercontent.com/banzaicloud/bank-vaults/master/operator/deploy/cr.yaml

Add privileged rolebinding

oc adm policy add-scc-to-user privileged -z vault-operator -n banzai-vault oc adm policy add-scc-to-user privileged -z vault -n banzai-vault

Additional context: If I don't add the privileged rolebinding the pods won't start

Environment details:

/kind bug

bonifaido commented 3 years ago

Interesting since OKD 4 has also this v1 Ingress API: https://docs.okd.io/latest/rest_api/network_apis/ingress-networking-k8s-io-v1.html

Do you what is the correct RBAC role for this in OKD (I don't have access to an OKD cluster)?

github-actions[bot] commented 1 week ago

Thank you for your contribution! This issue has been automatically marked as stale because it has no recent activity in the last 60 days. It will be closed in 20 days, if no further activity occurs. If this issue is still relevant, please leave a comment to let us know, and the stale label will be automatically removed.