Created
August 27, 2019 21:02
-
-
Save omerh/860771ebda0e8b2cadcf7a26ade6f833 to your computer and use it in GitHub Desktop.
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/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