mirror of
https://github.com/luscis/openlan.git
synced 2025-10-06 00:57:03 +08:00
docker: add esp network.
This commit is contained in:
@@ -8,7 +8,7 @@ metadata:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: network-private
|
name: network-etc
|
||||||
namespace: openlan
|
namespace: openlan
|
||||||
data:
|
data:
|
||||||
private.json: |-
|
private.json: |-
|
||||||
@@ -16,7 +16,7 @@ data:
|
|||||||
"name": "private",
|
"name": "private",
|
||||||
"provider": "openlan",
|
"provider": "openlan",
|
||||||
"bridge": {
|
"bridge": {
|
||||||
"address": "172.32.99.20/24"
|
"address": "172.32.99.20/24"
|
||||||
},
|
},
|
||||||
"routes": [
|
"routes": [
|
||||||
{
|
{
|
||||||
@@ -35,6 +35,11 @@ data:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ipsec.json: |-
|
||||||
|
{
|
||||||
|
"name": "ipsec",
|
||||||
|
"provider": "esp"
|
||||||
|
}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -48,7 +53,7 @@ data:
|
|||||||
{
|
{
|
||||||
"alias": "your-switch-alias-name",
|
"alias": "your-switch-alias-name",
|
||||||
"crypt": {
|
"crypt": {
|
||||||
"secret": "53a843402fa9"
|
"secret": "53a843402fa9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,12 +173,11 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: openlan-etc
|
- name: openlan-etc
|
||||||
mountPath: /etc/openlan
|
mountPath: /etc/openlan
|
||||||
- name: network-private
|
|
||||||
mountPath: /etc/openlan/switch/network/private.json
|
|
||||||
subPath: private.json
|
|
||||||
- name: switch-etc
|
- name: switch-etc
|
||||||
mountPath: /etc/openlan/switch/switch.json
|
mountPath: /etc/openlan/switch/switch.json
|
||||||
subPath: switch.json
|
subPath: switch.json
|
||||||
|
- name: network-etc
|
||||||
|
mountPath: /etc/openlan/switch/network
|
||||||
- name: confd-run
|
- name: confd-run
|
||||||
mountPath: /var/openlan/confd
|
mountPath: /var/openlan/confd
|
||||||
- name: ovs-run
|
- name: ovs-run
|
||||||
@@ -225,36 +229,36 @@ spec:
|
|||||||
- name: ovs-etc
|
- name: ovs-etc
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /opt/openlan/etc/openvswitch
|
path: /opt/openlan/etc/openvswitch
|
||||||
- name: network-private
|
- name: network-etc
|
||||||
configMap:
|
configMap:
|
||||||
defaultMode: 420
|
defaultMode: 0777
|
||||||
name: network-private
|
name: network-etc
|
||||||
- name: switch-etc
|
- name: switch-etc
|
||||||
configMap:
|
configMap:
|
||||||
defaultMode: 420
|
defaultMode: 0777
|
||||||
name: switch-etc
|
name: switch-etc
|
||||||
- name: proxy-etc
|
- name: proxy-etc
|
||||||
configMap:
|
configMap:
|
||||||
defaultMode: 420
|
defaultMode: 0777
|
||||||
name: proxy-etc
|
name: proxy-etc
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
# apiVersion: v1
|
||||||
kind: Service
|
# kind: Service
|
||||||
metadata:
|
# metadata:
|
||||||
name: openlan
|
# name: openlan
|
||||||
namespace: openlan
|
# namespace: openlan
|
||||||
spec:
|
# spec:
|
||||||
type: LoadBalancer
|
# type: LoadBalancer
|
||||||
ports:
|
# ports:
|
||||||
- name: openlan-web
|
# - name: openlan-web
|
||||||
port: 10000
|
# port: 10000
|
||||||
protocol: TCP
|
# protocol: TCP
|
||||||
targetPort: 10000
|
# targetPort: 10000
|
||||||
- name: openlan-tun
|
# - name: openlan-tun
|
||||||
port: 10002
|
# port: 10002
|
||||||
protocol: TCP
|
# protocol: TCP
|
||||||
targetPort: 10002
|
# targetPort: 10002
|
||||||
selector:
|
# selector:
|
||||||
name: openlan
|
# name: openlan
|
Reference in New Issue
Block a user