50 lines
809 B
YAML
50 lines
809 B
YAML
|
apiVersion: traefik.containo.us/v1alpha1
|
||
|
kind: IngressRouteTCP
|
||
|
metadata:
|
||
|
name: whoamitcp
|
||
|
spec:
|
||
|
entryPoints:
|
||
|
- whoamitcp
|
||
|
|
||
|
routes:
|
||
|
- match: HostSNI(`*`)
|
||
|
services:
|
||
|
- name: whoamitcp
|
||
|
port: 8080
|
||
|
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: whoamitcp
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
port: 8080
|
||
|
selector:
|
||
|
app: whoamitcp
|
||
|
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: whoamitcp
|
||
|
spec:
|
||
|
replicas: 3
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: whoamitcp
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: whoamitcp
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: whoamitcp
|
||
|
image: traefik/whoamitcp:latest
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
containerPort: 8080
|