first commit

This commit is contained in:
2026-09-09 23:15:49 +02:00
commit 71cd045e96
15 changed files with 570 additions and 0 deletions
+87
View File
@@ -0,0 +1,87 @@
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