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