Created
August 30, 2017 20:08
-
-
Save fabiocruzcoelho/1524593c5675745bd70c3ccecdcaf367 to your computer and use it in GitHub Desktop.
Modelo deploy kubernetes com limits e volume host.
This file contains 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/v1beta1 | |
kind: Deployment | |
metadata: | |
name: jobs | |
namespace: fabio | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: jobs | |
spec: | |
containers: | |
- name: jobs | |
image: registry/fabio/jobs | |
resources: | |
limits: | |
cpu: 100m | |
memory: 250Mi | |
requests: | |
cpu: 10m | |
memory: 125Mi | |
env: | |
- name: profile | |
value: prd | |
imagePullPolicy: Always | |
volumeMounts: | |
- name: tz-config | |
mountPath: /etc/localtime | |
volumes: | |
- name: tz-config | |
hostPath: | |
path: /usr/share/zoneinfo/America/Sao_Paulo | |
imagePullSecrets: | |
- name: registrykey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment