-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsage-data-api.yaml
More file actions
68 lines (68 loc) · 1.3 KB
/
sage-data-api.yaml
File metadata and controls
68 lines (68 loc) · 1.3 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: sage-data-api
namespace: sage
spec:
replicas: 1
selector:
matchLabels:
k8s-app: sage-data-api
template:
metadata:
labels:
k8s-app: sage-data-api
spec:
containers:
- name: sage-data-api
image: iperezx/sage-data-api:latest
resources:
limits:
memory: 100Mi
cpu: 100m
requests:
memory: 100Mi
cpu: 100m
ports:
- name: http
containerPort: 8080
protocol: TCP
imagePullPolicy: Always
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: sage-data-api
labels:
service: sage-data-api
spec:
selector:
k8s-app: sage-data-api
ports:
- name: web
port: 8080
protocol: TCP
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: haproxy
name: sage-data-api
spec:
rules:
- host: sage-data-api.nrp-nautilus.io
http:
paths:
- backend:
service:
name: sage-data-api
port:
number: 8080
path: /
pathType: ImplementationSpecific
tls:
- hosts:
- sage-data-api.nrp-nautilus.io