2021-07-08 05:12:24 +08:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: netmaker-ui
|
|
|
|
labels:
|
|
|
|
app: netmaker-ui
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: netmaker-ui
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: netmaker-ui
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: netmaker-ui
|
|
|
|
image: gravitl/netmaker-ui:v0.5
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
env:
|
|
|
|
- name: BACKEND_URL
|
2021-07-16 03:27:34 +08:00
|
|
|
value: "https://api.nm.k8s.gravitl.com"
|
2021-07-08 05:12:24 +08:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: netmaker-ui
|
|
|
|
name: netmaker-ui
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: 80
|
|
|
|
selector:
|
|
|
|
app: netmaker-ui
|
|
|
|
sessionAffinity: None
|
|
|
|
type: ClusterIP
|