Skip to content

Instantly share code, notes, and snippets.

@omerh
Created August 27, 2019 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omerh/860771ebda0e8b2cadcf7a26ade6f833 to your computer and use it in GitHub Desktop.
Save omerh/860771ebda0e8b2cadcf7a26ade6f833 to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: smaple
labels:
app: smaple
spec:
replicas: 1
selector:
matchLabels:
app: sample
template:
metadata:
labels:
app: sample
spec:
restartPolicy: Always
imagePullSecrets:
- name: ecr
containers:
- name: sample
image: 000000000000.dkr.ecr.eu-west-2.amazonaws.com/sample:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 4000
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: key
name: aws_credentials
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: secret
name: aws_credentials
resources:
requests:
cpu: "600m"
memory: "200Mi"
limits:
cpu: "1000m"
memory: "600Mi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment