Added config for service

This commit is contained in:
Sebastian Leheis 2023-09-20 18:02:01 +02:00
parent c3c8c4d509
commit 4e39627bbf
No known key found for this signature in database
2 changed files with 45 additions and 6 deletions

View file

@ -156,6 +156,27 @@ spec:
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: quota 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: syncPolicy:
syncOptions: syncOptions:
- CreateNamespace=true - CreateNamespace=true

View file

@ -177,10 +177,10 @@ data:
"name": "Monitoring", "name": "Monitoring",
"items": [ "items": [
{ {
"name": "Test", "name": "Grafana",
"displayURL": "Test.exaple.com", "displayURL": "grafana-old.services.yolokube.de",
"url": "test.exaple.com", "url": "grafana-old.services.yolokube.de",
"icon": "e88a", "icon": "e6e1",
"newTab": true "newTab": true
} }
] ]
@ -277,7 +277,7 @@ spec:
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: dashboard name: dashboard-service
namespace: dashboard namespace: dashboard
spec: spec:
selector: selector:
@ -285,4 +285,22 @@ spec:
ports: ports:
- protocol: TCP - protocol: TCP
port: 80 port: 80
targetPort: 8080 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