forked from SaladTechnologies/virtual-kubelet-saladcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-deployment-duplicate.yaml
98 lines (98 loc) · 2.79 KB
/
sample-deployment-duplicate.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
apiVersion: apps/v1
kind: Deployment
metadata:
name: Test-deployment
spec:
replicas: 1
selector:
matchLabels:
app: test-deployment
template:
metadata:
labels:
app: test-deployment
annotations:
logging.new_relic.host: HOST_1
logging.new_relic.ingestion_key: KEY_1
logging.splunk.host: HOST_2
logging.splunk.token: TOKEN_2
logging.tcp.host: HOST_3
logging.tcp.port: "1212"
registry_authentication.basic.username: USER_1
registry_authentication.basic.password: PASSWORD_1
registry_authentication.gcp_gcr.service_key: asdadasdasd
registry_authentication.aws_ecr.access_key_id: adasdasd
registry_authentication.aws_ecr.secret_access_key: asdasd
registry_authentication.docker_hub.username: asdasdad
registry_authentication.docker_hub.personal_access_token: asdasdasd
country_codes: "al, dz, ad"
spec:
containers:
- name: my-container
image: docker.io/heygordian/node-app:latest
command:
- "/command"
- "args 1"
resources:
requests:
memory: "1Gi"
cpu: "1"
limits:
memory: "1Gi"
cpu: "1"
env:
- name: ENV_VAR_1
value: "VALUE_1"
ports:
- containerPort: 1212
livenessProbe:
httpGet:
path: "/health"
port: 121
scheme: "http"
httpHeaders:
- name: "OBJECT_1"
value: "OBJECT_2"
tcpSocket:
port: 121
initialDelaySeconds: 12
periodSeconds: 1
timeoutSeconds: 1
failureThreshold: 1 # Mapping failure_threshold
startupProbe:
httpGet:
path: "/path-1"
port: 121
scheme: "http"
httpHeaders:
- name: "KEY"
value: "Value"
- name: "KEY2"
value: "Value"
tcpSocket:
port: 1211
initialDelaySeconds: 12
periodSeconds: 1
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 1
readinessProbe:
httpGet:
path: "/"
port: 80
volumeMounts:
- name: data-volume
mountPath: /data
volumes:
- name: data-volume
emptyDir: {}
nodeSelector:
kubernetes.io/role: agent
tolerations:
- key: "virtual-kubelet.io/provider"
operator: "Equal"
value: "saladCloud"
effect: "NoSchedule"
restartPolicy: "Always"
imagePullSecrets:
- name: my-secret