Skip to content

Commit

Permalink
Adding a sample k8s deployment manifest.
Browse files Browse the repository at this point in the history
  • Loading branch information
wsams committed Aug 20, 2020
1 parent 6608af0 commit 737c797
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions sample.deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 737c797

Please sign in to comment.