Last active
October 10, 2020 11:31
-
-
Save islander/7720de37864775e90f198d6a14df6f12 to your computer and use it in GitHub Desktop.
mindbox headhunter test deployment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: mindbox | |
namespace: mindbox | |
spec: | |
# 4 пода, которые справляются с нагрузкой | |
replicas: 4 | |
# 5-10 секунд на инцициализацию | |
minReadySeconds: 10 | |
selector: | |
matchLabels: | |
app: mindbox | |
template: | |
metadata: | |
name: mindbox | |
labels: | |
app: mindbox | |
spec: | |
containers: | |
- name: mindbox | |
image: nginx | |
imagePullPolicy: Always | |
readinessProbe: | |
# 5-10 секунд на инцициализацию | |
periodSeconds: 5 | |
httpGet: | |
path: / | |
port: 80 | |
resources: | |
limits: | |
# по условиям память фиксированная | |
memory: "128Mi" | |
requests: | |
memory: "128Mi" | |
# требование cpu = 0.1 (10%) | |
cpu: "100m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment