Closed chrisalexandrepena closed 2 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/
.
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"
This is unrelated to hlf-k8s
and there is probably an issue with how you configured your serviceAccount
.
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?
Is it still an issue ?
Yes it is
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
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 :)
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
For stability purposes I'm trying to run the substra platform on microk8s
instead
ofminikube
(onubuntu 18.04.5
). Using the configuration that was working with the latter:docker 19.03.12
kubernetes 1.15.11
hlf-k8s 0.0.12
substra-backend 0.0.19
skaffold 1.8.0
I've started microk8s, enableddns
,ingress
,rbac
andhelm 2.14.3
. I've added thebitnami
repository to helm, and for tiller to be successfuly setup on the cluster I've setup aservice account
and arole binding
and applied it to the cluster usingmicrok8s.kubectl apply -f my-setup.yaml
. But when I runskaffold run
from my hlf-k8s folder I end up with the following error:I've tried to
docker logout && docker login
, and also to do ahelm repo update
with no success. And when I tried to install the chart manualy usingmicrok8s.helm install --name orderer --namespace orderer substra/hlf-k8s --version 1.3.0 -f ./charts/hlf-k8s/values.yaml
I get the following error: