-
Notifications
You must be signed in to change notification settings - Fork 6
/
sample-deployment.yaml
43 lines (43 loc) · 1.06 KB
/
sample-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-deployment
annotations:
salad.com/country-codes: "ca,us,mx"
salad.com/gpu-classes: "GTX 1070 (8 GB), ffc51032-64d2-4df3-855a-f3a649895c0f"
salad.com/networking-protocol: "http"
salad.com/networking-port: "80"
salad.com/networking-auth: "true"
spec:
replicas: 1
selector:
matchLabels:
app: demo-app
template:
metadata:
labels:
app: demo-app
spec:
containers:
- name: my-container
env:
- name: test
value: test
- name: another
value: env
image: docker.io/heygordian/node-app:latest
resources:
requests:
memory: "1Gi"
cpu: "1"
limits:
memory: "1Gi"
cpu: "1"
nodeSelector:
kubernetes.io/role: agent
restartPolicy: Always
tolerations:
- key: "virtual-kubelet.io/provider"
operator: "Equal"
value: "saladCloud"
effect: "NoSchedule"