Skip to content

Instantly share code, notes, and snippets.

@lemmy04
Last active Apr 16, 2021
Embed
What would you like to do?
---
apiVersion: v1
kind: Namespace
metadata:
name: tk4
---
apiVersion: v1
kind: Service
metadata:
namespace: tk4
name: tk4-svc
labels:
app: tk4-app
spec:
ports:
- port: 8038
targetPort: 8038
protocol: TCP
name: tk4-web
- port: 3270
targetPort: 3270
protocol: TCP
name: tk4-telnet
selector:
app: tk4-app
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tk4-app
namespace: tk4
labels:
app: tk4-app
spec:
selector:
matchLabels:
app: tk4-app
template:
metadata:
labels:
app: tk4-app
spec:
containers:
- name: tk4-app
image: rattydave/docker-ubuntu-hercules-mvs:latest
resources:
limits:
cpu: "0.5"
memory: "512Mi"
requests:
cpu: "0.1"
memory: "128Mi"
env:
- name: NUMCPU
value: "1"
- name: MAXCPU
value: "1"
ports:
- containerPort: 3270
- containerPort: 8038
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: ingressroutetls
namespace: tk4
spec:
entryPoints:
- websecure
routes:
- match: Host(`tk4.apps.my.lan`)
kind: Rule
services:
- name: tk4-svc
port: 8038
tls: {}
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: ingressroutetcp3270
namespace: tk4
spec:
entryPoints:
- x3270
routes:
- match: HostSNI(`*`)
services:
- name: tk4-svc
port: 3270
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment