separate service
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: traefik-custom-controller
|
||||
|
||||
---
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
@@ -37,23 +31,4 @@ spec:
|
||||
- name: web
|
||||
containerPort: 9080
|
||||
- name: tcpep
|
||||
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
|
||||
containerPort: 9443
|
||||
@@ -1,3 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: traefik-custom-controller
|
||||
|
||||
---
|
||||
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
metadata:
|
||||
|
||||
17
custom/service.yaml
Normal file
17
custom/service.yaml
Normal 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
|
||||
Reference in New Issue
Block a user