This commit is contained in:
Mans Ziesel 2024-09-22 13:29:38 +02:00
parent c3aacf77d3
commit ad22fe5f3b
5 changed files with 36 additions and 9 deletions

View File

@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argo-app-ip-mziesel-nl
namespace: argocd
spec:
destination:
name: ''
namespace: default
server: https://kubernetes.default.svc
source:
path: ip-mziesel-nl
repoURL: https://git.mziesel.nl/mans/argocd-test
targetRevision: HEAD
sources: []
project: default
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@ -1,16 +1,25 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: traefik-service name: traefik-dashboard-service
spec: spec:
type: LoadBalancer type: LoadBalancer
ports: ports:
- name: web - port: 8080
targetPort: web
port: 80
- name: dashbaord
port: 8080
targetPort: dashboard targetPort: dashboard
selector: selector:
app: traefik app: traefik
---
apiVersion: v1
kind: Service
metadata:
name: traefik-web-service
spec:
type: LoadBalancer
ports:
- targetPort: web
port: 80
selector:
app: traefik

View File

@ -22,7 +22,7 @@ spec:
args: args:
- --api.insecure - --api.insecure
- --providers.kubernetesingress - --providers.kubernetesingress
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-service - --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-web-service
ports: ports:
- name: web - name: web
containerPort: 80 containerPort: 80

View File

@ -2,7 +2,6 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: whoami name: whoami
namespace: whoami
spec: spec:
replicas: 3 replicas: 3
revisionHistoryLimit: 3 revisionHistoryLimit: 3

View File

@ -2,7 +2,6 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: whoami name: whoami
namespace: whoami
spec: spec:
type: NodePort type: NodePort
ports: ports: