Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
613f828820 |
53
deployment/deploy.yml
Normal file
53
deployment/deploy.yml
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: tinyproxy
|
||||||
|
namespace: system
|
||||||
|
data:
|
||||||
|
ALLOWED_NETWORKS: "172.16.3.0/24 172.16.13.0/24 172.16.2.0/24"
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: tinyproxy
|
||||||
|
namespace: system
|
||||||
|
labels:
|
||||||
|
app: tinyproxy
|
||||||
|
annotations:
|
||||||
|
configmap.reloader.stakater.com/reload: tinyproxy
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: tinyproxy
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tinyproxy
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: tinyproxy
|
||||||
|
image: gitea.hottis.de/wn/tinyproxy-docker:0.0.1
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: tinyproxy
|
||||||
|
ports:
|
||||||
|
- containerPort: 3128
|
||||||
|
protocol: TCP
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: tinyproxy
|
||||||
|
namespace: system
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
externalTrafficPolicy: Local
|
||||||
|
selector:
|
||||||
|
app: tinyproxy
|
||||||
|
ports:
|
||||||
|
- name: tinyproxy
|
||||||
|
protocol: TCP
|
||||||
|
port: 3128
|
||||||
|
targetPort: 3128
|
||||||
|
|
Reference in New Issue
Block a user