Skip to content

Instantly share code, notes, and snippets.

@jcbombardelli
Created April 28, 2020 12:36
Show Gist options
  • Save jcbombardelli/f92b6fe06ec00255e23ee5359aeedd37 to your computer and use it in GitHub Desktop.
Save jcbombardelli/f92b6fe06ec00255e23ee5359aeedd37 to your computer and use it in GitHub Desktop.
Modelo de Deployment.yaml para k8s no curso da code.education - Aula: Trabalhando com Deployments
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-nginx
spec:
replicas: 3
selector:
matchLabels:
app: hello-nginx
template:
metadata:
labels:
app: hello-nginx
spec:
containers:
- name: nginx
image: nginx:1.17-alpine
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment