Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
jchua99 committed Feb 2, 2024
1 parent fc14fa7 commit b447e50
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/openyurt-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ jobs:
run:
pushd scripts/openyurt-deployer && go build -o oy_deploy && popd

- name: Run Unit Test on OpenYurt helper function
- name: Run Unit Test set up
run: |
cd scripts/openyurt-deployer
chmod +x unit_test_workflow.sh
./unit_test_workflow.sh
- name: Run Unit Test on OpenYurt helper function
run: |
go test -timeout 5m
17 changes: 16 additions & 1 deletion scripts/openyurt-deployer/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
# Quick set-up `OpenYurt`

## 1. Introduction
## 1.1 Introduction

This program extends [`EasyOpenyurt`](https://github.com/flyinghorse0510/easy_openyurt) to automate the set up process of an `OpenYurt` cluster.

It support setting up a Kubernetes cluster using kubeadm and then deploy `OpenYurt` and Knative on it. It is compatible with vHive stock-only mode.

## 1.2 About [`OpenYurt`](https://openyurt.io/docs/#:~:text=Furthermore%2C%20OpenYurt%20enhances%20node%20reliability,node%20heartbeats%20to%20the%20cloud.)

### Key Features

#### 1. Powerful edge autonomy capability
OpenYurt addresses this issue by implementing a per-node proxy (YurtHub) along with local storage to cache the state of the cloud apiserver. Consequently, when a node loses its connection, the cached states remain accessible to Kubelet, KubeProxy, and any user Pods.

#### 2. Cross NodePool network communication capability

In an edge computing Kubernetes cluster, nodes are often distributed across various geographical regions. Consequently, when relying on a native Container Network Interface (CNI) solution, Pods within different NodePools may be unable to communicate using Pod IP, Service IP, or Node IP, particularly if each NodePool resides within its own isolated LAN. Raven offers a networking solution that enables cross-NodePool communication within an OpenYurt cluster.

#### 3. Multi-NodePool Management

In order to manage applications and traffic in multiple nodepools conveniently, YurtAppSet and YurtAppDaemon are introduced for managing workloads in multi-nodepool, and service topology capability for routing traffic in nodepool.

## 2. Brief overview

**Prerequisite of nodes:**
Expand Down
4 changes: 0 additions & 4 deletions scripts/openyurt-deployer/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ func TestParsingNodeDependencyVersion(t *testing.T) {
// Mock NodesInfo
mockNodesInfo := NodesInfo{
Master: "[email protected]",
// Workers: Workers{
// Cloud: []string{"cloud@host"},
// Edge: []string{"edge@host"},
// },
}

// Define a table of criteria
Expand Down
5 changes: 0 additions & 5 deletions scripts/openyurt-deployer/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,11 +662,6 @@ func (node *Node) InstallKnativeServing() {
_, err = node.ExecShellCmd("kubectl get pods -n knative-serving")
utils.CheckErrorWithMsg(err, "Verification Failed!")

// // Configure DNS
// logs.WaitPrintf("Configuring DNS")
// _, err = node.ExecShellCmd("kubectl apply -f https://github.com/knative/serving/releases/download/knative-v%s/serving-default-domain.yaml", node.Configs.Knative.KnativeVersion)
// logs.CheckErrorWithTagAndMsg(err, "Failed to configure DNS!")

// enable node selector
utils.WaitPrintf("Enable node selector in knative serving")
_, err = node.ExecShellCmd(`kubectl patch cm config-features -n knative-serving \
Expand Down
2 changes: 0 additions & 2 deletions scripts/openyurt-deployer/unit_test_workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ sudo service ssh restart
ssh-add ~/.ssh/id_rsa

chmod og-rw ~/.ssh

go test -timeout 5m

0 comments on commit b447e50

Please sign in to comment.