change whoami app to kustomize

This commit is contained in:
Mans Ziesel 2024-09-22 11:59:10 +02:00
parent 18e8eaf11f
commit 27c2be9cdd
12 changed files with 24 additions and 33 deletions

View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: traefik

View File

@ -10,4 +10,3 @@ roleRef:
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: traefik-account name: traefik-account
namespace: traefik

View File

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

View File

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

View File

@ -2,7 +2,6 @@ apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: whoami-ingress name: whoami-ingress
namespace: traefik
spec: spec:
rules: rules:
- http: - http:

10
whoami/kustomization.yaml Normal file
View File

@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: whoami
resources:
- ./base/namespace.yaml
- ./base/whoami-deployment.yaml
- ./base/whoami-svc.yaml.yaml
- ./base/whoami-ingress.yaml