Skip to content

Instantly share code, notes, and snippets.

@sudheerchamarthi
Last active December 21, 2019 18:32
Show Gist options
  • Save sudheerchamarthi/8f362b72b1f7959009a7fc1d19e91af6 to your computer and use it in GitHub Desktop.
Save sudheerchamarthi/8f362b72b1f7959009a7fc1d19e91af6 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: rsyslog-deployment
namespace: rsyslog
labels:
app: rsyslog
spec:
replicas: 3
selector:
matchLabels:
app: rsyslog
template:
metadata:
labels:
app: rsyslog
spec:
containers:
- name: rsyslog
image: sudheerc1190/rsyslog:latest
ports:
- containerPort: 514
resources:
requests:
cpu: 250m
memory: 524Mi
volumeMounts:
- name: efs
mountPath: "/var/log"
restartPolicy: Always
terminationGracePeriodSeconds: 30
volumes:
- name: efs
persistentVolumeClaim:
claimName: efs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment