change whoami app to kustomize
This commit is contained in:
parent
18e8eaf11f
commit
27c2be9cdd
@ -1,4 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: traefik
|
@ -10,4 +10,3 @@ roleRef:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: traefik-account
|
||||
namespace: traefik
|
14
traefik/base/002-traefik-services.yaml
Normal file
14
traefik/base/002-traefik-services.yaml
Normal 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
|
@ -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
|
@ -2,7 +2,6 @@ apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: whoami-ingress
|
||||
namespace: traefik
|
||||
spec:
|
||||
rules:
|
||||
- http:
|
10
whoami/kustomization.yaml
Normal file
10
whoami/kustomization.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user