docs: update kubernetes
Some checks are pending
Coverage CI / build (push) Waiting to run
CodeQL / Analyze (go) (push) Waiting to run
Ubuntu CI / build (push) Waiting to run

This commit is contained in:
Daniel Ding
2025-04-20 14:39:33 +08:00
parent 557b174ae7
commit 84c638ffe8
2 changed files with 4 additions and 92 deletions

View File

@@ -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

View File

@@ -111,9 +111,12 @@ OpenLAN软件包含下面部分
"algorithm": "aes-128",
"secret": "ea64d5b0c96c"
},
"forward": [
"192.168.10.0/24" ## 转发路由
],
"connection": "example.net",
"username": "<your-name>@example", ## <用户名>@<网络>
"password": "<your-password>" ## 认证的密码
"password": "<your-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
```