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