-
Notifications
You must be signed in to change notification settings - Fork 0
/
smuggler.yaml
81 lines (81 loc) · 1.63 KB
/
smuggler.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
76
77
78
79
80
81
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: smuggler
instance: prod
name: smuggler
spec:
replicas: 2
template:
metadata:
labels:
app: smuggler
instance: prod
spec:
containers:
- env:
- name: APP_CONFIG_PATH
value: /data/config/config.json
image: ghcr.io/wuvt/smuggler
imagePullPolicy: Always
name: smuggler
ports:
- containerPort: 5000
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /data/config
name: smuggler-config
readOnly: true
- mountPath: /etc/localtime
name: tzinfo
readOnly: true
volumes:
- name: smuggler-config
secret:
defaultMode: 420
secretName: smuggler.config
- hostPath:
path: /usr/share/zoneinfo/America/New_York
name: tzinfo
---
apiVersion: v1
kind: Service
metadata:
labels:
app: smuggler
instance: prod
name: smuggler
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 5000
selector:
app: smuggler
instance: prod
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: smuggler
labels:
app: smuggler
instance: prod
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 25g
spec:
tls:
- hosts:
- "smuggler.apps.wuvt.vt.edu"
rules:
- host: "smuggler.apps.wuvt.vt.edu"
http:
paths:
- path: /
backend:
serviceName: smuggler
servicePort: 8080