You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a k8s cluster via kind and deploy the cluster component, u4a component and baas component.
18
+
19
+
```shell
20
+
# if you don't have a k8s cluster, it will create a k8s cluster by kind
21
+
make kind
22
+
23
+
# it will install cluster components, u4a-components and baas components
24
+
make e2e
25
+
```
26
+
27
+
## Manual deployment
28
+
29
+
### 1. Install u4a-component
4
30
For the 1st step, we'll install u4a-component and it'll provide the account, authentication, authorization and audit funcationality built on Kubernetes. And it has the capability to add more features following the guide later.
5
31
6
32
And then we'll deploy BaaS on top of it, and use OIDC token for SSO between u4a and baas component.
7
33
8
-
### Install cluster tools
34
+
#### 1.1 Install cluster tools
35
+
9
36
Before deploy u4a, we should add some tools for later usage. Enter into u4a-component folder and following the step below:
10
37
11
-
* This step will install a ingress nginx controller with ingressclass named 'u4a-component-ingress' and cert-manager for certificate management.
38
+
* This step will install a ingress nginx controller with ingressclass named 'portal-ingress' and cert-manager for certificate management.
|`namespace`| which namespace the operator will be deployed. | default `baas-system`. |
53
+
|`ingressDomain`| ingress domain. | default `empty`, **you must set it**. |
54
+
|`serviceAccountName`| service account name | default ` operator-controller-manager`|
55
+
|`operator.watchNamespace`| The namespace under which the CR is created can trigger the operator's logic. | default `empty`, means all namespace. |
56
+
| `operator.clusterType` | K8S, or OPENSHIFT. | default `K8S`. |
57
+
| `operator.iamServer` | iam provider address. | default `emtpy`, **you must set it**. |
58
+
| `operator.image` | The image that the operator deployment will use. | default `hyperledgerk8s/fabric-operator:latest` |
59
+
| `operator.imagePullPolicy` | image pull policy. | default `IfNotPresent`. Other optional values for reference [image pull policy](https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy) |
60
+
| `operator.clusterRoleName` | cluster role name. | The clusterrole contains the permissions required by the operator's serviceaccount. default `manager-role`|
61
+
|`operator.clusterRoleBindingName`| cluster role binding | default `operator`|
62
+
|`operator.resources`| request resource. | default request cpu is `100m`, default request memory is `200Mi`|
63
+
|`operator.readinessProbe`| readiness probe ||
64
+
|`operator.tolerations`| Pod tolerated stains | Tolerate all stains by default |
65
+
|`operator.affinity`| How pods are scheduled ||
66
+
|`leaderElection.roleName`| The name of the role that contains the permissions needed for operator elections | default `leader-election-role`|
67
+
|`leaderElection.roleNameBinding`| role binding | default `leader-election-rolebinding`|
68
+
|`authProxy.authProxyServiceName`| service name | default `controller-manager-metrics-service`|
69
+
|`authProxy.proxyClusterRoleName`| cluster role name | default `proxy-role`|
70
+
|`authProxy.proxyClusterRoleBindingName`| cluster rolebinding name | default `proxy-rolebinding`|
71
+
|`authProxy.metricReaderClusterRoleName`| metrics reader cluster role name | default `metrics-reader`|
72
+
|`bcapi.name`| Composited APIs for fabric resource APIs | default `bff-apis`|
73
+
|`bcapi.env.k8sOIDCProxyURL`| oidc proxy url | it can be emtpty if you don't need oidc-proxy. |
74
+
| `bcapi.env.OIDCServerURL` | oidc server | must be completed |
75
+
| `bcapi.env.OIDCServerClientID` | oidc client id | must be completed |
76
+
| `bcapi.env.OIDCServerClientSecret` | oidc client secret | must be completed |
77
+
| `bcapi.image` | image used by the bff service | hyperledgerk8s/bc-apis:v0.1.0-20230118 |
78
+
| `bcapi.imagePullPolicy` | the policy of pulling image | `IfNotPresent` |
79
+
| `bcapi.hostAliases` | add entry to Pod's /etc/hosts | can be empty, format reference [adding-additional-entries-with-hostaliases](https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/#adding-additional-entries-with-hostaliases) |
80
+
|`bcapi.ingressName`| name of the ingress of the bff service|`bc-apis-ingress`|
0 commit comments