apiVersion: apps/v1 kind: Deployment metadata: name: tcp-echo-b namespace: tcp-echo labels: app: tcp-echo instance: b spec: replicas: 1 selector: matchLabels: app: tcp-echo instance: b template: metadata: labels: app: tcp-echo instance: b spec: containers: - name: tcp-echo image: gitea.eitczech.com/public/tcp-echo-server:latest imagePullPolicy: Always env: - name: PORT value: "9099" - name: INSTANCE_ID value: "echo-b" ports: - name: tcp containerPort: 9099 protocol: TCP readinessProbe: tcpSocket: port: tcp initialDelaySeconds: 2 periodSeconds: 5 livenessProbe: tcpSocket: port: tcp initialDelaySeconds: 5 periodSeconds: 10 resources: requests: cpu: 20m memory: 32Mi limits: cpu: 200m memory: 128Mi securityContext: allowPrivilegeEscalation: false runAsNonRoot: true runAsUser: 1654 runAsGroup: 1654 capabilities: drop: ["ALL"] --- apiVersion: v1 kind: Service metadata: name: tcp-echo-b namespace: tcp-echo spec: type: ClusterIP selector: app: tcp-echo instance: b ports: - name: tcp port: 9099 targetPort: tcp protocol: TCP --- apiVersion: traefik.io/v1alpha1 kind: IngressRouteTCP metadata: name: tcp-echo-b namespace: tcp-echo spec: entryPoints: - tcpechob routes: - match: HostSNI(`*`) services: - name: tcp-echo-b port: 9099