-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.deployment.yaml
59 lines (59 loc) · 1.4 KB
/
sample.deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpd
labels:
app: httpd
spec:
replicas: 1
selector:
matchLabels:
app: httpd
template:
metadata:
labels:
app: httpd
spec:
containers:
- name: httpd
image: wsams/httpd:latest
imagePullPolicy: Always
ports:
- containerPort: 80
env:
- name: HTTP_SERVER_NAME
value: localhost
- name: HTTP_SERVER_ADMIN
value: [email protected]
- name: SSL_CERTIFICATE_FILE
value: /apache-cert.pem
- name: SSL_CERTIFICATE_KEY_FILE
value: /apache-key.pem
resources:
requests:
memory: 0
cpu: 0
limits:
memory: 128Mi
cpu: 256m
# Uncomment the following and edit accordingly. This would allow you to mount /var/www/html as a PersistentVolumeClaim. This data would then persist across Deployment restarts
# volumeMounts:
# - name: httpd-data
# mountPath: /var/www/html
# volumes:
# - name: httpd-data
# persistentVolumeClaim:
# claimName: httpd-pvc
#---
#kind: PersistentVolumeClaim
#apiVersion: v1
#metadata:
# name: httpd-pvc
# annotations:
# volume.beta.kubernetes.io/storage-class: enter-your-storage-class
#spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 1Gi