job's done
This commit is contained in:
41
002-deployment.yml
Normal file
41
002-deployment.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user