install owntracks frontend

This commit is contained in:
Tobias Brunner 2020-01-26 20:46:25 +01:00
parent 313ab18c22
commit e2b13726b0
3 changed files with 59 additions and 0 deletions

View 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

View 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

View 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 = {};