separate service
This commit is contained in:
@@ -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
|
|
||||||
@@ -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
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