botoffice-solution/002-deployment.yml

42 lines
791 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: feladat
namespace: feladat
labels:
app: feladat
spec:
replicas: 1
selector:
matchLabels:
app: feladat
strategy:
type: Recreate
template:
metadata:
labels:
app: feladat
spec:
containers:
- name: feladat-apache
image: httpd:2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
volumeMounts:
- name: config-volume
mountPath: /usr/local/apache2/htdocs/
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "256Mi"
cpu: "500m"
volumes:
- name: config-volume
configMap:
name: feladat-config