30 lines
665 B
YAML
30 lines
665 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
labels:
|
||
|
io.kompose.service: port-forwarder
|
||
|
name: port-forwarder
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
io.kompose.service: port-forwarder
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
io.kompose.service: port-forwarder
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: hpello/tcp-proxy:latest
|
||
|
name: port-forwarder
|
||
|
env:
|
||
|
- name: LISTEN_PORT
|
||
|
value: "8080"
|
||
|
ports:
|
||
|
- containerPort: 8080
|
||
|
resources: {}
|
||
|
args: ["traefik.kube-system.svc.cluster.local", "80"]
|
||
|
restartPolicy: Always
|