diff --git a/dashboard/kustomization.yaml b/dashboard/kustomization.yaml index 0de39a0..1ec6d13 100644 --- a/dashboard/kustomization.yaml +++ b/dashboard/kustomization.yaml @@ -5,4 +5,4 @@ kind: Kustomization images: - name: yolokube/dashboard newName: yolokube/dashboard - newTag: "228" + newTag: "236" diff --git a/dashboard/prod/dashboard.yaml b/dashboard/prod/dashboard.yaml index 704e438..9391816 100644 --- a/dashboard/prod/dashboard.yaml +++ b/dashboard/prod/dashboard.yaml @@ -4,11 +4,62 @@ metadata: name: dashboard --- apiVersion: v1 -kind: ConfigMap -metadata: - name: dashboard-data - namespace: dashboard data: + apps.json: | + { + "categories": [ + { + "name": "Monitoring", + "items": [ + { + "name": "Grafana", + "displayURL": "grafana.services.yolokube.de", + "url": "https://grafana.services.yolokube.de", + "icon": "e6e1", + "newTab": true + }, + { + "name": "Prometheus", + "displayURL": "prometheus.services.yolokube.de", + "url": "https://prometheus.services.yolokube.de", + "icon": "e876", + "newTab": true + }, + { + "name": "Alert Manager", + "displayURL": "alertmanager.services.yolokube.de", + "url": "https://alertmanager.services.yolokube.de", + "icon": "e7f4", + "newTab": true + } + ] + }, + { + "name": "Storage", + "items": [ + { + "name": "Longhorn", + "displayURL": "longhorn.services.yolokube.de", + "url": "https://longhorn.services.yolokube.de", + "icon": "e161", + "newTab": true + } + ] + }, + { + "name": "Deployment", + "items": [ + { + "name": "Argo", + "displayURL": "argo.services.yolokube.de", + "url": "https://argo.services.yolokube.de", + "icon": "e037", + "newTab": true + } + ] + } + ] + } greeter.json: | { "greeter": { @@ -60,6 +111,59 @@ data: "dateformat": "%wd, %m %d%e %y" } } + search.json: | + { + "placeholder": "", + "defaultProvider": "https://duckduckgo.com/?q=", + "autoFocus": false, + "providers": [ + { + "name": "Allmusic", + "url": "https://www.allmusic.com/search/all/", + "prefix": "/a" + }, + { + "name": "Discogs", + "url": "https://www.discogs.com/search/?q=", + "prefix": "/di" + }, + { + "name": "iMDB", + "url": "https://www.imdb.com/find?q=", + "prefix": "/i" + }, + { + "name": "TheMovieDB", + "url": "https://www.themoviedb.org/search?query=", + "prefix": "/m" + }, + { + "name": "Reddit", + "url": "https://www.reddit.com/search?q=", + "prefix": "/r" + }, + { + "name": "Soundcloud", + "url": "https://soundcloud.com/search?q=", + "prefix": "/so" + }, + { + "name": "Spotify", + "url": "https://open.spotify.com/search/results/", + "prefix": "/s" + }, + { + "name": "TheTVDB", + "url": "https://www.thetvdb.com/search?q=", + "prefix": "/tv" + }, + { + "name": "YouTube", + "url": "https://youtube.com/results?search_query=", + "prefix": "/yt" + } + ] + } themes.json: | { "themes": [ @@ -170,122 +274,31 @@ data: } ] } - apps.json: | - { - "categories": [ - { - "name": "Monitoring", - "items": [ - { - "name": "Grafana", - "displayURL": "grafana.services.yolokube.de", - "url": "https://grafana.services.yolokube.de", - "icon": "e6e1", - "newTab": true - }, - { - "name": "Prometheus", - "displayURL": "prometheus.services.yolokube.de", - "url": "https://prometheus.services.yolokube.de", - "icon": "e876", - "newTab": true - }, - { - "name": "Alert Manager", - "displayURL": "alertmanager.services.yolokube.de", - "url": "https://alertmanager.services.yolokube.de", - "icon": "e7f4", - "newTab": true - } - ] - }, - { - "name": "Storage", - "items": [ - { - "name": "Longhorn", - "displayURL": "longhorn.services.yolokube.de", - "url": "https://longhorn.services.yolokube.de", - "icon": "e161", - "newTab": true - } - ] - }, - { - "name": "Deployment", - "items": [ - { - "name": "Argo", - "displayURL": "argo.services.yolokube.de", - "url": "https://argo.services.yolokube.de", - "icon": "e037", - "newTab": true - } - ] - } - ] - } - search.json: | - { - "placeholder": "", - "defaultProvider": "https://duckduckgo.com/?q=", - "autoFocus": false, - "providers": [ - { - "name": "Allmusic", - "url": "https://www.allmusic.com/search/all/", - "prefix": "/a" - }, - { - "name": "Discogs", - "url": "https://www.discogs.com/search/?q=", - "prefix": "/di" - }, - { - "name": "iMDB", - "url": "https://www.imdb.com/find?q=", - "prefix": "/i" - }, - { - "name": "TheMovieDB", - "url": "https://www.themoviedb.org/search?query=", - "prefix": "/m" - }, - { - "name": "Reddit", - "url": "https://www.reddit.com/search?q=", - "prefix": "/r" - }, - { - "name": "Soundcloud", - "url": "https://soundcloud.com/search?q=", - "prefix": "/so" - }, - { - "name": "Spotify", - "url": "https://open.spotify.com/search/results/", - "prefix": "/s" - }, - { - "name": "TheTVDB", - "url": "https://www.thetvdb.com/search?q=", - "prefix": "/tv" - }, - { - "name": "YouTube", - "url": "https://youtube.com/results?search_query=", - "prefix": "/yt" - } - ] - } +kind: ConfigMap +metadata: + name: dashboard-data + namespace: dashboard +--- +apiVersion: v1 +kind: Service +metadata: + name: dashboard-service + namespace: dashboard +spec: + ports: + - port: 80 + protocol: TCP + targetPort: 8080 + selector: + app: dashboard --- apiVersion: apps/v1 kind: Deployment metadata: - name: dashboard-deployment - namespace: dashboard labels: app: dashboard + name: dashboard-deployment + namespace: dashboard spec: replicas: 3 selector: @@ -296,33 +309,20 @@ spec: labels: app: dashboard spec: - volumes: - - name: dashboard-data - configMap: - name: dashboard-data - defaultMode: 0666 containers: - - name: dashboard - image: yolokube/dashboard:latest + - image: yolokube/dashboard:236 imagePullPolicy: Always + name: dashboard ports: - containerPort: 8080 volumeMounts: - - mountPath: "/app/data" + - mountPath: /app/data name: dashboard-data ---- -apiVersion: v1 -kind: Service -metadata: - name: dashboard-service - namespace: dashboard -spec: - selector: - app: dashboard - ports: - - protocol: TCP - port: 80 - targetPort: 8080 + volumes: + - configMap: + defaultMode: 438 + name: dashboard-data + name: dashboard-data --- apiVersion: networking.k8s.io/v1 kind: Ingress @@ -331,13 +331,13 @@ metadata: namespace: dashboard spec: rules: - - host: "dashboard.services.yolokube.de" + - host: dashboard.services.yolokube.de http: paths: - - pathType: Prefix - path: "/" - backend: + - backend: service: name: dashboard-service port: number: 80 + path: / + pathType: Prefix