2023-02-27 09:36:36 +01:00
|
|
|
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
|
2023-11-02 18:32:37 +01:00
|
|
|
name: port-forwarder-https
|
2023-02-27 09:36:36 +01:00
|
|
|
env:
|
|
|
|
- name: LISTEN_PORT
|
2023-11-02 18:32:37 +01:00
|
|
|
value: "443"
|
2023-02-27 09:36:36 +01:00
|
|
|
ports:
|
2023-11-02 18:32:37 +01:00
|
|
|
- containerPort: 443
|
2023-02-27 09:36:36 +01:00
|
|
|
resources: {}
|
2023-11-02 18:32:37 +01:00
|
|
|
args: ["ingress-nginx-controller.ingress-nginx.svc.cluster.local", "443"]
|
|
|
|
- image: hpello/tcp-proxy:latest
|
|
|
|
name: port-forwarder-http
|
|
|
|
env:
|
|
|
|
- name: LISTEN_PORT
|
|
|
|
value: "80"
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
resources: {}
|
|
|
|
args: ["ingress-nginx-controller.ingress-nginx.svc.cluster.local", "80"]
|
2023-02-27 09:36:36 +01:00
|
|
|
restartPolicy: Always
|