Skip to content

Instantly share code, notes, and snippets.

@fabiocruzcoelho
Created August 30, 2017 20:08
Show Gist options
  • Save fabiocruzcoelho/1524593c5675745bd70c3ccecdcaf367 to your computer and use it in GitHub Desktop.
Save fabiocruzcoelho/1524593c5675745bd70c3ccecdcaf367 to your computer and use it in GitHub Desktop.
Modelo deploy kubernetes com limits e volume host.
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