Description
I tried to install 2 openfaas envs in one k8s cluster's 2 different namespaces for different usage using Helm.
I'm using different helm release names, but the later installation has errors.
I install one in a namespace, and second release in another and i got the error
invalid ownership metadata openfaas profiles
The thing is the CRD already exists in another namespace
If I install it with the param createCRDs = false it installs, but when trying to run pod it stops with
secret "basic-auth" not found
Expected Behaviour
It should be able to install openfaas seprately in multiple k8s namespaces
Current Behaviour
Profile CRD is namespaced so it has conflict.
Are you a GitHub Sponsor (Yes/No?)
No
List All Possible Solutions and Workarounds
Make Profile not namespaced or provide a way to assign different name?
Steps to Reproduce (for bugs)
helm install openfaas-1 openfaas/ \
--namespace ns-1 \
--set functionNamespace=ns-1
helm install openfaas-2 openfaas/ \
--namespace ns-2 \
--set functionNamespace=ns-2
--set gateway.nodePort=31113
Context
I'm setting up 2 envs for dev usage and test usage
Your Environment
-
FaaS-CLI version ( Full output from:
faas-cli version
):
CLI:
commit: 77ad215bcc6291dbf72c73caffe4d76aa2bb6fb1
version: 0.13.11 -
Docker version
docker version
(e.g. Docker 17.0.05 ):
Client:
Cloud integration: 1.0.14
Version: 20.10.6
API version: 1.41
Go version: go1.16.3
Git commit: 370c289
Built: Fri Apr 9 22:46:57 2021
OS/Arch: darwin/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.6
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 8728dd2
Built: Fri Apr 9 22:44:56 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.4
GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
runc:
Version: 1.0.0-rc93
GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
docker-init:
Version: 0.19.0
GitCommit: de40ad0
-
What version and distriubtion of Kubernetes are you using?
kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:11:29Z", GoVersion:"go1.16.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.5", GitCommit:"9a45ba1752db920873e084791faff8d470278b09", GitTreeState:"clean", BuildDate:"2021-05-19T22:28:02Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"} -
Operating System and version (e.g. Linux, Windows, MacOS):
MacOS BigSur intel