Skip to content

Instantly share code, notes, and snippets.

@grigorkh
Created May 23, 2019 05:38
Show Gist options
  • Save grigorkh/bb3aee2631644db54671f2a206dc7fda to your computer and use it in GitHub Desktop.
Save grigorkh/bb3aee2631644db54671f2a206dc7fda to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: prisma
name: mongo
spec:
replicas: 1
strategy:
type: Recreate
template:
spec:
containers:
- args:
- --smallfiles
image: mongo:latest
name: mongo
ports:
- containerPort: 27017
resources: {}
imagePullPolicy: Always
volumeMounts:
- mountPath: /data/db
name: db-claim0
restartPolicy: Always
volumes:
- name: db-claim0
persistentVolumeClaim:
claimName: db-claim0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment