mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-14 13:44:37 +08:00
40 lines
697 B
YAML
40 lines
697 B
YAML
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
|
|
value: "https://api.nm.k8s.gravitl.com"
|
|
---
|
|
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
|