forked from kubowania/battleships
-
Notifications
You must be signed in to change notification settings - Fork 19
/
art.yaml
220 lines (214 loc) · 5.83 KB
/
art.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
---
version: "v1"
appName: "battlemeister"
image: "054565121117.dkr.ecr.us-east-1.amazonaws.com/argonaut/battlemeister"
imageTag: "latest"
services:
- port: 80
protocol: "tls-terminated" # tls-passthrough, tls-terminated, tcp, http, grpc need to be supported
external:
hosts:
- "battleship.dev.argonaut.live"
hostPort: 443
paths: ["/"]
argonaut:
env: dev
region: us-east-1
cluster: dev
imageRegistry: ecr # corresponding to the image that is to be deployed
serviceType: "stateless" # One of {stateful, stateless, managed}
repoName: battleships
persistentStorage:
[]
replicas: 1
minReplicas: 1
maxReplicas: 1
resources:
requests:
cpu: "500m"
memory: "512M"
limits:
cpu: "1000m"
memory: "1500M"
#########################################################################################
# Everything below this is optional and advanced configuration #
# and irrelevant in most scenarios. #
#########################################################################################
# Can only do one of the httpGet and exec handler methods for livenessProbe
livenessProbe:
httpGet:
path: /
port: 80
# exec:
# command:
# - sh
# - -c
# - |
# #!/usr/bin/env sh
# test -f /etc/
failureThreshold: 5
initialDelaySeconds: 10
successThreshold: 3
periodSeconds: 10
timeoutSeconds: 5
# Can only do one of the httpGet and exec handler methods for readinessProbe
readinessProbe:
httpGet:
path: /
port: 80
# # Handler 2
# exec:
# command:
# - sh
# - -c
# - |
# #!/usr/bin/env sh
# test -f /etc/
# Common fields
failureThreshold: 5
initialDelaySeconds: 10
successThreshold: 3
periodSeconds: 10
timeoutSeconds: 5
externalServices: []
podAnnotations:
{}
# iam.amazonaws.com/role: myapp-cluster
# additionals labels
labels:
argonaut.dev/repoName: battleships
# Allows you to load environment variables from kubernetes secret or config map
envFrom: []
# - secretRef:
# name: env-secret
# - configMapRef:
# name: config-map
# A list of secrets and their paths to mount inside the pod
# This is useful for mounting certificates for security
secretMounts:
[]
# - name: beamd-cert
# secretName: beamd-cert
# path: /usr/share/myapp/config/certs
sidecarResources:
{}
# limits:
# cpu: "25m"
# # memory: "128Mi"
# requests:
# cpu: "25m"
# memory: "128Mi"
# networkHost: "0.0.0.0"
# The default value of 1 will make sure that kubernetes won't allow more than 1
# of your pods to be unavailable during maintenance
# maxUnavailable: 25%
updateStrategy: RollingUpdate
# How long to wait for myapp to stop gracefully
terminationGracePeriod: 30
lifecycle:
{}
# preStop:
# exec:
# command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
# postStart:
# exec:
# command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
rbac:
create: false
serviceAccountAnnotations: {}
serviceAccountName: ""
# This is the PriorityClass settings as defined in
# https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
priorityClassName: ""
# By default this will make sure two pods don't end up on the same node
# Changing this to a region would allow you to spread pods across regions
# This doesn't apply if antiAffinity is not set
antiAffinityTopologyKey: "kubernetes.io/hostname"
# "hard" means that by default pods will only be scheduled if there are enough nodes for them
# and that they will never end up on the same node. Setting this to "soft" will do this best effort
antiAffinity: ""
# This is the node affinity settings as defined in
# https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature
nodeAffinity: {}
# The default is to deploy all pods serially. By setting this to parallel all pods are started at
# the same time when bootstrapping the cluster
podManagementPolicy: "Parallel"
podSecurityContext:
{}
# fsGroup: 1000
# runAsUser: 1000
securityContext:
{}
# capabilities:
# drop:
# - ALL
# # readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
## Use an alternate scheduler.
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
schedulerName: ""
nodeSelector: {}
tolerations: []
initContainer:
enabled: false
# command: ["echo", "I am an initContainer"]
# image: nginx
initResources:
{}
# limits:
# cpu: "25m"
# # memory: "128Mi"
# requests:
# cpu: "25m"
# memory: "128Mi"
extraInitContainers:
[]
# - name: do-something
# image: busybox
# command: ['do', 'something']
extraVolumes:
[]
# - name: extras
# emptyDir: {}
extraVolumeMounts:
[]
# - name: extras
# mountPath: /usr/share/extras
# readOnly: true
extraContainers:
[]
# - name: do-something
# image: busybox
# command: ['do', 'something']
# Allows you to add any config files in /usr/share/myapp/config/
# as a ConfigMap
extraConfig:
[]
# - name: configName
# path: "/path/to/config/folder/"
# readOnly: true
# data:
# pokedex.yaml: |
# pokemonName: Pikachu
# pokemonType: Lightning
# battle.yaml: |
# pokemon1: Pikachu
# pokemon2: MewTwo
# - name: configName2
# path: "/path/to/config/anotherfolder/"
# readOnly: true
# data:
# pokedex.yaml: |
# pokemonName: Pikachu
# pokemonType: Lightning
# battle.yaml: |
# pokemon1: Pikachu
# pokemon2: MewTwo
# Extra environment variables to append to this nodeGroup
# This will be appended to the current 'env:' key. You can use any of the kubernetes env
# syntax here
extraEnvs: []
# - name: MY_ENVIRONMENT_VAR
# value: the_value_goes_here