c12s-application-set/deploy/k8s-poc-demo/base/deployment.yaml
2022-12-16 03:29:49 +01:00

28 lines
552 B
YAML

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