From 84c638ffe89615d2ce65b040f3217320a19e4ab8 Mon Sep 17 00:00:00 2001 From: Daniel Ding Date: Sun, 20 Apr 2025 14:39:33 +0800 Subject: [PATCH] docs: update kubernetes --- docker/kubernetes.yml | 90 ------------------------------------------- docs/install.md | 6 ++- 2 files changed, 4 insertions(+), 92 deletions(-) diff --git a/docker/kubernetes.yml b/docker/kubernetes.yml index 1056d90..ca4f2bb 100644 --- a/docker/kubernetes.yml +++ b/docker/kubernetes.yml @@ -93,62 +93,6 @@ spec: name: openlan spec: containers: - - name: "openlan-confd" - image: "luscis/openlan:23.04.02" - imagePullPolicy: IfNotPresent - command: - - /var/openlan/script/confd.sh - - start - resources: - limits: - cpu: 200m - memory: 512Mi - requests: - cpu: 200m - memory: 512Mi - volumeMounts: - - name: openlan-etc - mountPath: /etc/openlan - - name: confd-run - mountPath: /var/openlan/confd - - name: "ovsdb-server" - image: "luscis/openlan:23.04.02" - imagePullPolicy: IfNotPresent - command: - - /var/openlan/script/ovsdb-server.sh - - start - resources: - limits: - cpu: 200m - memory: 512Mi - requests: - cpu: 200m - memory: 512Mi - volumeMounts: - - name: ovs-run - mountPath: /run/openvswitch - - name: ovs-etc - mountPath: /etc/openvswitch - - name: "ovs-vswitchd" - image: "luscis/openlan:23.04.02" - imagePullPolicy: IfNotPresent - command: - - /var/openlan/script/ovs-vswitchd.sh - - start - resources: - limits: - cpu: 200m - memory: 512Mi - requests: - cpu: 200m - memory: 512Mi - volumeMounts: - - name: ovs-run - mountPath: /run/openvswitch - - name: ovs-etc - mountPath: /etc/openvswitch - securityContext: - privileged: true - name: "openlan-switch" image: "luscis/openlan:23.04.02" imagePullPolicy: IfNotPresent @@ -178,12 +122,6 @@ spec: subPath: switch.json - name: network-etc mountPath: /etc/openlan/switch/network - - name: confd-run - mountPath: /var/openlan/confd - - name: ovs-run - mountPath: /run/openvswitch - - name: ovs-etc - mountPath: /etc/openvswitch - name: "openlan-proxy" image: "luscis/openlan:23.04.02" imagePullPolicy: IfNotPresent @@ -197,38 +135,10 @@ spec: - name: proxy-etc mountPath: /etc/openlan/proxy.json subPath: proxy.json - - name: "openlan-task" - image: "luscis/openlan:23.04.02" - imagePullPolicy: IfNotPresent - command: - - /var/openlan/script/task.sh - resources: - limits: - cpu: 100m - memory: 128Mi - requests: - cpu: 100m - memory: 128Mi - volumeMounts: - - name: openlan-etc - mountPath: /etc/openlan - - name: confd-run - mountPath: /var/openlan/confd - - name: ovs-run - mountPath: /run/openvswitch - - name: ovs-etc - mountPath: /etc/openvswitch volumes: - - name: confd-run - emptyDir: {} - name: openlan-etc hostPath: path: /opt/openlan/etc/openlan - - name: ovs-run - emptyDir: {} - - name: ovs-etc - hostPath: - path: /opt/openlan/etc/openvswitch - name: network-etc configMap: defaultMode: 0777 diff --git a/docs/install.md b/docs/install.md index 938128d..1bb81b2 100755 --- a/docs/install.md +++ b/docs/install.md @@ -111,9 +111,12 @@ OpenLAN软件包含下面部分: "algorithm": "aes-128", "secret": "ea64d5b0c96c" }, + "forward": [ + "192.168.10.0/24" ## 转发路由 + ], "connection": "example.net", "username": "@example", ## <用户名>@<网络> - "password": "" ## 认证的密码 + "password": "" ## 认证的密码 } $ cat example.json | python -m json.tool ## 配置预检查 ``` @@ -125,6 +128,5 @@ OpenLAN软件包含下面部分: 4. 检测网络是否可达; ``` $ ping 172.32.10.10 -c 3 - $ ip r add 192.168.10.0/24 via 172.32.10.10 $ ping 192.168.10.1 -c 3 ```