netmaker: add API and UI
This commit is contained in:
21
netmaker/ui/deployment.yaml
Normal file
21
netmaker/ui/deployment.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: netmaker-ui
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: netmaker-ui
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: netmaker-ui
|
||||
spec:
|
||||
containers:
|
||||
- name: netmaker-ui
|
||||
image: gravitl/netmaker-ui:v1.1.0
|
||||
env:
|
||||
- name: BACKEND_URL
|
||||
value: 'https://api.netmaker-test.infra.dubyatp.xyz'
|
||||
terminationGracePeriodSeconds: 15
|
||||
16
netmaker/ui/ingress.yaml
Normal file
16
netmaker/ui/ingress.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: netmaker-ui-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: dashboard.netmaker-test.infra.dubyatp.xyz
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: netmaker-ui
|
||||
port:
|
||||
number: 80
|
||||
13
netmaker/ui/svc.yaml
Normal file
13
netmaker/ui/svc.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: 'netmaker-ui'
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: 'netmaker-ui'
|
||||
sessionAffinity: None
|
||||
type: 'ClusterIP'
|
||||
Reference in New Issue
Block a user