blob: 1fa2c4cdbd914914a440eebcc7a34b0f12697d60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: squid
labels:
app: squid
spec:
replicas: 1
selector:
matchLabels:
app: squid
template:
metadata:
labels:
app: squid
spec:
containers:
- name: squid
image: b4tman/squid:5.2
ports:
- containerPort: 80
volumeMounts:
- name: squid-conf
mountPath: /etc/squid/squid.conf
readOnly: true
volumes:
- name: squid-conf
configMap:
name: squid-config-file
---
apiVersion: v1
kind: Service
metadata:
name: squid-service
spec:
selector:
app: squid
type: NodePort
ports:
- protocol: UDP
port: 80
targetPort: 80
nodePort: 30880
name: "squid-udp-80"
- protocol: TCP
port: 80
targetPort: 80
nodePort: 30880
name: "squid-tcp-80"
|