-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbatchgeocode.yaml
59 lines (59 loc) · 1.25 KB
/
batchgeocode.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
apiVersion: v1
kind: Service
metadata:
name: batchgeocode
namespace: default
labels:
app: batchgeocode
spec:
type: ClusterIP
ports:
- name: batchgeocode
port: 80
protocol: TCP
targetPort: 5000
selector:
app: batchgeocode
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: default
name: batchgeocode
spec:
selector:
matchLabels:
app: batchgeocode
serviceName: batchgeocode
replicas: 1
template:
metadata:
labels:
app: batchgeocode
spec:
dnsPolicy: Default
containers:
- name: batchgeocode
image: docker-sae.artifactory.ihme.washington.edu/mlc314/batch_geocode
ports:
- name: batchgeocode
containerPort: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: batchgeocode
namespace: default
spec:
entryPoints:
- ssl
routes:
# NOTE: backticks - NOT QUOTES
- match: Host(`batch-geocode.sae.ihme.washington.edu`)
kind: Rule
services:
- name: batchgeocode
port: 80
tls:
store:
name: default