55<div align =" center " >
66
77[ ![ 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 )
89[ ![ License] ( https://img.shields.io/badge/License-Apache_2.0-blue.svg )] ( https://opensource.org/licenses/Apache-2.0 )
910
1011</div >
@@ -888,7 +889,7 @@ exchange:
888889### docker
889890
890891` ` `
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
892893```
893894
894895
@@ -910,6 +911,12 @@ cd dist/helm
910911helm install frontier ./ -f values.yaml
911912```
912913
914+ 你的微服务应该连接` service/frontier-servicebound-svc:40011 ` ,你的边缘节点可以连接` :30012 ` 所在的NodePort。
915+
916+ ### operator
917+
918+ 见下面集群部署章节
919+
913920## 集群
914921
915922### Frontier + Frontlas架构
@@ -1039,11 +1046,23 @@ service ClusterService {
10391046
10401047```
10411048git 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
10441063```
10451064
1046- ** CR **
1065+ ** FrontierCluster集群 **
10471066
10481067``` yaml
10491068apiVersion : frontier.singchia.io/v1alpha1
@@ -1056,7 +1075,7 @@ metadata:
10561075spec :
10571076 frontier :
10581077 # 单实例Frontier
1059- replicas : 1
1078+ replicas : 2
10601079 # 微服务侧端口
10611080 servicebound :
10621081 port : 30011
@@ -1069,17 +1088,49 @@ spec:
10691088 # 控制面端口
10701089 controlplane :
10711090 port : 40011
1072- # 依赖的Redis配置
10731091 redis :
1092+ # 依赖的Redis配置
10741093 addrs :
10751094 - rfs-redisfailover:26379
10761095 password : your-password
10771096 masterName : mymaster
10781097 redisType : sentinel
10791098` ` `
10801099
1081- 1分钟,你即可拥有一个Frontier+Frontlas的集群 。
1100+ 1分钟,你即可拥有一个2实例Frontier+1实例Frontlas的集群 。
10821101
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。
10831134
10841135## 开发
10851136
@@ -1107,4 +1158,8 @@ spec:
11071158
11081159## 许可证
11091160
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