24 lines
526 B
YAML
24 lines
526 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mywebapp
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
spec: # Pod spec leadblacktech
|
|
containers:
|
|
- name: mycontainer
|
|
image: "devopsjourney1/mywebapp:latest"
|
|
ports:
|
|
- containerPort: 80
|
|
envFrom:
|
|
- configMapRef:
|
|
name: mykustom-map
|
|
resources:
|
|
requests:
|
|
memory: "16Mi"
|
|
cpu: "50m" # 500milliCPUs (1/2 CPU)
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "100m"
|