5
5
<div align =" center " >
6
6
7
7
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/singchia/frontier )] ( https://goreportcard.com/report/github.com/singchia/frontier )
8
+ [ ![ Go Reference] ( https://pkg.go.dev/badge/badge/github.com/singchia/frontier.svg )] ( https://pkg.go.dev/github.com/singchia/frontier/api/dataplane/v1/service )
8
9
[ ![ License] ( https://img.shields.io/badge/License-Apache_2.0-blue.svg )] ( https://opensource.org/licenses/Apache-2.0 )
9
10
10
11
</div >
@@ -888,7 +889,7 @@ exchange:
888
889
### docker
889
890
890
891
` ` `
891
- docker run -d --name frontier -p 30011:30011 -p 30012:30012 singchia/frontier:1.0 .0
892
+ docker run -d --name frontier -p 30011:30011 -p 30012:30012 singchia/frontier:1.1 .0
892
893
```
893
894
894
895
@@ -910,6 +911,12 @@ cd dist/helm
910
911
helm install frontier ./ -f values.yaml
911
912
```
912
913
914
+ 你的微服务应该连接` service/frontier-servicebound-svc:40011 ` ,你的边缘节点可以连接` :30012 ` 所在的NodePort。
915
+
916
+ ### operator
917
+
918
+ 见下面集群部署章节
919
+
913
920
## 集群
914
921
915
922
### Frontier + Frontlas架构
@@ -1039,11 +1046,23 @@ service ClusterService {
1039
1046
1040
1047
```
1041
1048
git clone https://github.com/singchia/frontier.git
1042
- cd pkg/operator
1043
- make install && make deploy
1049
+ cd dist/crd
1050
+ kubectl apply -f install.yaml
1051
+ ```
1052
+
1053
+ 查看CRD:
1054
+
1055
+ ```
1056
+ kubectl get crd frontierclusters.frontier.singchia.io
1057
+ ```
1058
+
1059
+ 查看Operator:
1060
+
1061
+ ```
1062
+ kubectl get all -n frontier-system
1044
1063
```
1045
1064
1046
- ** CR **
1065
+ ** FrontierCluster集群 **
1047
1066
1048
1067
``` yaml
1049
1068
apiVersion : frontier.singchia.io/v1alpha1
@@ -1056,7 +1075,7 @@ metadata:
1056
1075
spec :
1057
1076
frontier :
1058
1077
# 单实例Frontier
1059
- replicas : 1
1078
+ replicas : 2
1060
1079
# 微服务侧端口
1061
1080
servicebound :
1062
1081
port : 30011
@@ -1069,17 +1088,49 @@ spec:
1069
1088
# 控制面端口
1070
1089
controlplane :
1071
1090
port : 40011
1072
- # 依赖的Redis配置
1073
1091
redis :
1092
+ # 依赖的Redis配置
1074
1093
addrs :
1075
1094
- rfs-redisfailover:26379
1076
1095
password : your-password
1077
1096
masterName : mymaster
1078
1097
redisType : sentinel
1079
1098
` ` `
1080
1099
1081
- 1分钟,你即可拥有一个Frontier+Frontlas的集群 。
1100
+ 1分钟,你即可拥有一个2实例Frontier+1实例Frontlas的集群 。
1082
1101
1102
+ 通过一下来检查资源部署情况
1103
+
1104
+ > kubectl get all -l app=frontiercluster-frontier
1105
+ > kubectl get all -l app=frontiercluster-frontlas
1106
+
1107
+
1108
+ ` ` `
1109
+ NAME READY STATUS RESTARTS AGE
1110
+ pod/frontiercluster-frontier-57d565c89-dn6n8 1/1 Running 0 7m22s
1111
+ pod/frontiercluster-frontier-57d565c89-nmwmt 1/1 Running 0 7m22s
1112
+ NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
1113
+ service/frontiercluster-edgebound-svc NodePort 10.233.23.174 <none> 30012:30012/TCP 8m7s
1114
+ service/frontiercluster-servicebound-svc ClusterIP 10.233.29.156 <none> 30011/TCP 8m7s
1115
+ NAME READY UP-TO-DATE AVAILABLE AGE
1116
+ deployment.apps/frontiercluster-frontier 2/2 2 2 7m22s
1117
+ NAME DESIRED CURRENT READY AGE
1118
+ replicaset.apps/frontiercluster-frontier-57d565c89 2 2 2 7m22s
1119
+ ```
1120
+
1121
+ ```
1122
+ kubectl get all -l app=frontiercluster-frontlas
1123
+ NAME READY STATUS RESTARTS AGE
1124
+ pod/frontiercluster-frontlas-85c4fb6d9b-5clkh 1/1 Running 0 8m11s
1125
+ NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
1126
+ service/frontiercluster-frontlas-svc ClusterIP 10.233.0.23 <none> 40011/TCP,40012/TCP 8m11s
1127
+ NAME READY UP-TO-DATE AVAILABLE AGE
1128
+ deployment.apps/frontiercluster-frontlas 1/1 1 1 8m11s
1129
+ NAME DESIRED CURRENT READY AGE
1130
+ replicaset.apps/frontiercluster-frontlas-85c4fb6d9b 1 1 1 8m11s
1131
+ ```
1132
+
1133
+ 你的微服务应该连接` service/frontiercluster-frontlas-svc:40011 ` ,你的边缘节点可以连接` :30012 ` 所在的NodePort。
1083
1134
1084
1135
## 开发
1085
1136
@@ -1107,4 +1158,8 @@ spec:
1107
1158
1108
1159
## 许可证
1109
1160
1110
- Released under the [Apache License 2.0](https://github.com/singchia/geminio/blob/main/LICENSE)
1161
+ Released under the [ Apache License 2.0] ( https://github.com/singchia/geminio/blob/main/LICENSE )
1162
+
1163
+ ---
1164
+
1165
+ 已经看到这里,点个Star⭐️是莫大的认可♥️
0 commit comments