Skip to content

Instantly share code, notes, and snippets.

@glaracuente
Created February 1, 2022 17:05
Show Gist options
  • Save glaracuente/222be9da2cafa4d7962512ba5269d2c2 to your computer and use it in GitHub Desktop.
Save glaracuente/222be9da2cafa4d7962512ba5269d2c2 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
namespace: development
spec:
replicas: 2
selector:
matchLabels:
app: webapp
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: webapp
spec:
containers:
- name: webapp
image: 777322182566.dkr.ecr.us-east-1.amazonaws.com/myapp:1.02.4
ports:
- containerPort: 80
env:
- name: AWS_REGION
value: us-east-1
envFrom:
- configMapRef:
name: webapp
imagePullPolicy: Always
resources:
limits:
memory: 2Gi
requests:
cpu: 500m
memory: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: webapp
labels:
app: webapp
namespace: development
spec:
ports:
- port: 80
protocol: TCP
selector:
app: webapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment