Skip to content

Instantly share code, notes, and snippets.

@lemmy04
Last active April 16, 2021 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lemmy04/f3c88619dfa900d744c57718dff49d01 to your computer and use it in GitHub Desktop.
Save lemmy04/f3c88619dfa900d744c57718dff49d01 to your computer and use it in GitHub Desktop.
---
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