-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttpgo.yaml
53 lines (53 loc) · 1.14 KB
/
httpgo.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
# create service
apiVersion: v1
kind: Service
metadata:
name: httpgo
spec:
type: NodePort
selector:
app: httpgo
ports:
- port: 8888
targetPort: 8888
protocol: TCP
name: http
nodePort: 31000
---
# create httpgo deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpgo
spec:
selector:
matchLabels:
app: httpgo
replicas: 1
template:
metadata:
labels:
app: httpgo
spec:
containers:
- name: httpgo
image: registry.cern.ch/cmsweb/httpgo@sha256:50b8811b2b9bb834457a0764c8277b6d7242a3eba0d1b76fcbbeb7f12392ab56
command: ["/data/httpgo"]
args: ["-config", "/etc/config/httpgoConfig.json"]
volumeMounts:
- mountPath: "/etc/certs/"
name: my-tls-secret
readOnly: true
- mountPath: "/etc/config"
name: config-volume
ports:
- containerPort: 8888
imagePullPolicy: Always
volumes:
- name: my-tls-secret
secret:
secretName: my-tls-secret
volumes:
- name: config-volume
configMap:
name: httpgo-config