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

29 lines
552 B
YAML
Raw Permalink Normal View History

2022-12-15 23:23:50 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: k8s-poc-nginx-deployment
2022-12-16 02:29:49 +00:00
labels:
app: k8s-poc-nginx
2022-12-15 23:23:50 +00:00
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"