Skip to content

Instantly share code, notes, and snippets.

@goindwalia
Created February 22, 2017 07:10
Show Gist options
  • Save goindwalia/5be0633ce3b058aced9d42dc9019cee6 to your computer and use it in GitHub Desktop.
Save goindwalia/5be0633ce3b058aced9d42dc9019cee6 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: mongodb3
namespace: production
spec:
replicas: 1
template:
metadata:
labels:
k8s-app: mongodb3
spec:
containers:
- name: mongodb3
image: dr.xenonstack.com:5050/mongo:v3.0
imagePullPolicy: "IfNotPresent"
ports:
- containerPort: 27017
volumeMounts:
- mountPath: /data/db
name: mongodisk1
volumes:
- name: mongodisk1
glusterfs:
endpoints: glusterfs-cluster
path: mongodb-disk
readOnly: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment