fix manifest errors
This commit is contained in:
parent
aadcd540e2
commit
eb488b2daf
6
traefik/base/000-namespace.yaml
Normal file
6
traefik/base/000-namespace.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: treafik
|
||||||
|
labels:
|
||||||
|
pod-security.kubernetes.io/enforce: privileged
|
@ -1,14 +1,25 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: traefik-service
|
name: traefik-dashboard-service
|
||||||
|
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
|
targetPort: dashboard
|
||||||
|
selector:
|
||||||
|
app: traefik
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: traefik-web-service
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
ports:
|
ports:
|
||||||
- targetPort: web
|
- targetPort: web
|
||||||
port: 80
|
port: 80
|
||||||
- targetPort: dashboard
|
|
||||||
port: 8080
|
|
||||||
selector:
|
selector:
|
||||||
app: traefik
|
app: traefik
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
||||||
namespace: kube-system
|
namespace: traefik
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
- ./base/000-namespace.yaml
|
||||||
- ./base/000-role-binding.yaml
|
- ./base/000-role-binding.yaml
|
||||||
- ./base/000-cluster-role.yaml
|
- ./base/000-cluster-role.yaml
|
||||||
- ./base/001-service-account.yaml
|
- ./base/001-service-account.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user