install owntracks frontend
This commit is contained in:
parent
313ab18c22
commit
e2b13726b0
37
owntracks/01-deployment-frontend.yaml
Normal file
37
owntracks/01-deployment-frontend.yaml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: frontend
|
||||||
|
namespace: owntracks
|
||||||
|
labels:
|
||||||
|
app: frontend
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: frontend
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: frontend
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: SERVER_HOST
|
||||||
|
value: owntracks
|
||||||
|
- name: SERVER_PORT
|
||||||
|
value: "8083"
|
||||||
|
image: docker.io/owntracks/frontend:v2.0.0-beta.8
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: frontend
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /usr/share/nginx/html/config
|
||||||
|
name: config
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: frontend
|
13
owntracks/03-service-frontend.yaml
Normal file
13
owntracks/03-service-frontend.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: frontend
|
||||||
|
namespace: owntracks
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
app: frontend
|
||||||
|
type: ClusterIP
|
9
owntracks/05-frontend-cm.yaml
Normal file
9
owntracks/05-frontend-cm.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: frontend
|
||||||
|
data:
|
||||||
|
config.js: |
|
||||||
|
// Here you can overwite the default configuration values
|
||||||
|
window.owntracks = window.owntracks || {};
|
||||||
|
window.owntracks.config = {};
|
Reference in a new issue