c12s-application-set/deploy/k8s-poc-demo/base/deployment.yaml

27 lines
519 B
YAML
Raw Normal View History

2022-12-15 23:23:50 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: k8s-poc-nginx-deployment
spec:
selector:
matchLabels:
2022-12-15 23:47:27 +00:00
app: k8s-poc-nginx
2022-12-15 23:23:50 +00:00
replicas: 2
template:
metadata:
labels:
2022-12-15 23:47:27 +00:00
app: k8s-poc-nginx
2022-12-15 23:23:50 +00:00
spec:
containers:
2022-12-15 23:47:27 +00:00
- name: k8s-poc-nginx
2022-12-15 23:23:50 +00:00
image: nginx:latest
ports:
- containerPort: 80
2022-12-15 23:47:27 +00:00
imagePullPolicy: IfNotPresent
2022-12-15 23:23:50 +00:00
resources:
requests:
cpu: "100m"
limits:
memory: "256Mi"
cpu: "150m"