Created
August 7, 2017 13:02
-
-
Save DawTaylor/70553a04aa21e087db9fa0fed32b5c86 to your computer and use it in GitHub Desktop.
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
# note que o nome será utilizado pelo DNS para localizar o redis | |
name: redis | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: redis | |
role: master | |
tier: backend | |
spec: | |
containers: | |
- name: master | |
image: gcr.io/google_containers/redis:e2e | |
# como o redis é um banco que armazena tudo em memória, | |
# impor limites é recomendável | |
resources: | |
requests: | |
cpu: 100m | |
memory: 100Mi | |
ports: | |
- containerPort: 6379 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment