-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
46 lines (45 loc) · 984 Bytes
/
deployment.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
# kubernetes-fastapi LoadBalancer Service
# Enables the pods in a deployment to be accessible from outside the cluster
apiVersion: v1
kind: Service
metadata:
name: loadbalancer-svc
spec:
selector:
app: neura
ports:
- protocol: 'TCP'
port: 4000
targetPort: 4000
type: LoadBalancer
---
# neura Deployment
# Defines the deployment of the app running in a pod on any worker node
apiVersion: apps/v1
kind: Deployment
metadata:
name: neura
labels:
app: neura
spec:
replicas: 4
selector:
matchLabels:
app: neura
template:
metadata:
labels:
app: neura
spec:
containers:
- name: neura
image: itmo-neura:latest
ports:
- containerPort: 4000
imagePullPolicy: Never
resources:
requests:
cpu: '250m'
envFrom:
- secretRef:
name: itmo-neura-secrets