diff --git a/core-deployments.yaml b/core-deployments.yaml index 430d48e..dbfe4d6 100644 --- a/core-deployments.yaml +++ b/core-deployments.yaml @@ -156,6 +156,27 @@ spec: destination: server: https://kubernetes.default.svc namespace: quota + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: false + prune: true +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: dashboard + namespace: argocd +spec: + project: default + source: + repoURL: https://git.ar21.de/yolokube/core-deployments.git + targetRevision: HEAD + path: dashboard + destination: + server: https://kubernetes.default.svc + namespace: dashboard syncPolicy: syncOptions: - CreateNamespace=true diff --git a/dashboard/dashboard.yaml b/dashboard/dashboard.yaml index a9fb723..ffc5153 100644 --- a/dashboard/dashboard.yaml +++ b/dashboard/dashboard.yaml @@ -177,10 +177,10 @@ data: "name": "Monitoring", "items": [ { - "name": "Test", - "displayURL": "Test.exaple.com", - "url": "test.exaple.com", - "icon": "e88a", + "name": "Grafana", + "displayURL": "grafana-old.services.yolokube.de", + "url": "grafana-old.services.yolokube.de", + "icon": "e6e1", "newTab": true } ] @@ -277,7 +277,7 @@ spec: apiVersion: v1 kind: Service metadata: - name: dashboard + name: dashboard-service namespace: dashboard spec: selector: @@ -285,4 +285,22 @@ spec: ports: - protocol: TCP port: 80 - targetPort: 8080 \ No newline at end of file + targetPort: 8080 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: dashboard-ingress + namespace: dashboard +spec: + rules: + - host: "dashboard.apps.yolokube.de" + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: dashboard-service + port: + number: 80 \ No newline at end of file