-
Notifications
You must be signed in to change notification settings - Fork 0
/
squid.yaml
75 lines (75 loc) · 1.56 KB
/
squid.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apiVersion: v1
kind: Template
metadata:
name: container-squid
labels:
name: squid
annotations:
description: Template for squid
objects:
- apiVersion: v1
kind: DeploymentConfig
metadata:
name: squid
spec:
replicas: 1
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- squid
from:
kind: ImageStreamTag
name: squid:latest
selector:
deploymentconfig: squid
strategy:
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 100%
maxUnavailable: 0%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
application: squid
deploymentconfig: squid
spec:
containers:
- image: squid:latest
imagePullPolicy: Always
name: squid
port: 3128
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: 50m
memory: 64Mi
volumeMounts:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
configMap:
name: squidwhitelist
- apiVersion: v1
kind: Service
metadata:
annotations:
description: Squid proxy service
name: squid
spec:
ports:
- name: squid-cache
port: 3128
protocol: TCP
targetPort: 3128
selector:
deploymentconfig: squid