Substra / hlf-k8s

Initializes an Hyperledger Fabric network (orchestrator distributed mode)
https://docs.substra.org
Apache License 2.0
31 stars 20 forks source link

Error when accessing substrafoundation helm charts #92

Closed chrisalexandrepena closed 2 years ago

chrisalexandrepena commented 4 years ago

For stability purposes I'm trying to run the substra platform on microk8s instead of minikube (on ubuntu 18.04.5). Using the configuration that was working with the latter:

AlexandrePicosson commented 4 years ago

Hello, at least for the manual install, you should add the substra helm repo by running helm repo add substra https://substrafoundation.github.io/charts/.

chrisalexandrepena commented 4 years ago

Hello, at least for the manual install, you should add the substra helm repo by running helm repo add substra https://substrafoundation.github.io/charts/.

Just did, then added a microk8s.helm repo update. And when running the command again (the manual install) I get the following error:

Error: release orderer failed: namespaces "orderer" is forbidden: User "system:serviceaccount:kube-system:default" cannot get resource "namespaces" in API group "" in the namespace "orderer"
AlexandrePicosson commented 4 years ago

This is unrelated to hlf-k8s and there is probably an issue with how you configured your serviceAccount.

chrisalexandrepena commented 4 years ago

I did a pretty basic config:

apiVersion: v1
kind: ServiceAccount
metadata:
  name: tiller
  namespace: kube-system

---

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: tiller
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
  - kind: ServiceAccount
    name: tiller
    namespace: kube-system

anything I'm missing?

Kelvin-M commented 3 years ago

Is it still an issue ?

chrisalexandrepena commented 3 years ago

Yes it is

chrisalexandrepena commented 3 years ago

Yes it is, though now I deploy the latest release of substra (v0.7.1). Still haven't been able to do it using microk8s

Kelvin-M commented 3 years ago

To be clear, I'm talking about helm chart accessing issue. The service account issue should not be developed in the same issue to avoid mixing responses :)

chrisalexandrepena commented 3 years ago

Haha yes I know :) The problem is still with the FATA[0001] failed to build: build failed: building [substrafoundation/hlf-k8s]: build artifact: denied: requested access to the resource is denied message I get when trying to run a skaffold run command on hlf-k8s