feat(edge): bind demo units to edge nodes
This commit is contained in:
1 parent
742b361d1b
commit
b70b40ba74
4 files changed
+43
-2
No files matched your search
@@ -12,7 +12,10 @@ spec:
|
||||
elements:
|
||||
- id: demo
|
||||
description: Demo Agent
|
||||
nodeLabel: ""
|
||||
nodeLabel: node1
|
||||
- id: demo-2
|
||||
description: Demo Agent 2
|
||||
nodeLabel: node2
|
||||
template:
|
||||
metadata:
|
||||
name: 'mixingx-agent-{{ .id }}'
|
||||
|
||||
@@ -12,7 +12,10 @@ spec:
|
||||
elements:
|
||||
- id: demo
|
||||
description: Demo Edge
|
||||
nodeLabel: ""
|
||||
nodeLabel: node2
|
||||
- id: demo-2
|
||||
description: Demo Edge 2
|
||||
nodeLabel: node1
|
||||
template:
|
||||
metadata:
|
||||
name: 'mixingx-edge-{{ .id }}'
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: longhorn-ui-ingress
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
|
||||
targetRevision: master
|
||||
path: networking/longhorn-ui
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: longhorn-system
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: longhorn-ui
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: longhorn.mixingx.local
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: longhorn-frontend
|
||||
port:
|
||||
number: 80
|
||||
Reference in new issue
Block a user