-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauger2.yaml
47 lines (46 loc) · 1.62 KB
/
auger2.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
---
apiVersion: v1
kind: Service
metadata:
name: auger2-service # Name of the service. Could be anything.
labels:
app: ta3-container #Name of ta3 container
spec:
type: LoadBalancer # Type of service. This should always be LoadBalancer.
loadBalancerIP: 10.108.34.42 # range of 10.108.34.40-49. If you use this, please mark your IP on Reserved IP section if you want your IP not to collide with someone else.
selector:
app: ta3-container # This is where you define which container to link this service to. This must match the labels.app attribute of the pod you are trying to create the service for.
ports:
- name: http
port: 8080 #represents that service can be accessed by other services in the cluster at port 8080.
protocol: TCP
targetPort: 8080 # The targetPort is 8080 which represents the service is actually running on port 8080 on pods
---
apiVersion: v1
kind: Pod
metadata:
name: auger2-pod #can be anything
labels:
app: ta3-container #note that this attribute must match spec.selector attribute of the service
spec:
restartPolicy: Never
containers:
- name: tufts-ta3
image: registry.datadrivendiscovery.org/cliu/snowcat:summer2020demodylan2 #replace me
imagePullPolicy: Always
command: [./ta3_search]
env:
- name: TA2_PORT
value: "45042"
- name: DATAMART_URL_NYU
value: "https://datamart.d3m.vida-nyu.org/"
ports:
- name: http
containerPort: 8080
resources:
requests:
memory: 16Gi
cpu: 4
#...[add more containers if needed]
imagePullSecrets:
- name: regcred-cl