-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path020-deployment.yaml
More file actions
47 lines (47 loc) · 1.07 KB
/
020-deployment.yaml
File metadata and controls
47 lines (47 loc) · 1.07 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
kind: Deployment
apiVersion: apps/v1
metadata:
name: ${APP_NAME}
namespace: ${NAMESPACE}
labels:
app: ${APP_NAME}
spec:
replicas: 1
selector:
matchLabels:
app: ${APP_NAME}
template:
metadata:
labels:
app: ${APP_NAME}
spec:
#nodeSelector:
# beta.kubernetes.io/instance-type: "${INSTANCE_TYPE}"
containers:
- name: main
image: "${REGISTRY}${IMAGE}${TAG}"
imagePullPolicy: Always
#command: ["${command}"]
#args: ["${args}"]
env:
- name: PORT_INTERNAL
value: "${PORT_INTERNAL}"
ports:
- name: pod-port
containerPort: ${PORT_INTERNAL}
#resources:
# limits:
# cpu: 4
# memory: 4Gi
# nvidia.com/gpu: 1
# k8s.amazonaws.com/vgpu: 5
# requests:
# cpu: "1"
# memory: 1Gi
#volumeMounts:
#- name: nvidia-mps
# mountPath: /tmp/nvidia-mps
#volumes:
#- name: nvidia-mps
# hostPath:
# path: /tmp/nvidia-mps