separate service

This commit is contained in:
ducoterra
2020-04-20 09:47:25 -04:00
parent 4f18562459
commit 804ca70101
3 changed files with 25 additions and 26 deletions

View File

@@ -1,9 +1,3 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-custom-controller
---
kind: Deployment kind: Deployment
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:
@@ -38,22 +32,3 @@ spec:
containerPort: 9080 containerPort: 9080
- name: tcpep - name: tcpep
containerPort: 9443 containerPort: 9443
---
apiVersion: v1
kind: Service
metadata:
name: traefik
spec:
type: LoadBalancer
selector:
app: traefik
ports:
- protocol: TCP
port: 9080
name: web
targetPort: 9080
- protocol: TCP
port: 9443
name: websecure
targetPort: 9443

View File

@@ -1,3 +1,10 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-custom-controller
---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1beta1
metadata: metadata:

17
custom/service.yaml Normal file
View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: traefik
spec:
type: LoadBalancer
selector:
app: traefik
ports:
- protocol: TCP
port: 9080
name: web
targetPort: 9080
- protocol: TCP
port: 9443
name: websecure
targetPort: 9443