Skip to content

Instantly share code, notes, and snippets.

@chy168
Created September 9, 2018 14:02
Show Gist options
  • Save chy168/fd26e590873eeb0a11d56b38e150876e to your computer and use it in GitHub Desktop.
Save chy168/fd26e590873eeb0a11d56b38e150876e to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: testing
labels:
component: db
spec:
template:
metadata:
labels:
component: db
spec:
containers:
- name: testing
image: mongo
ports:
- containerPort: 27017
name: ya
volumeMounts:
- name: testing-storage-db
mountPath: /data/db
- name: testing-storage-conf
mountPath: /data/configdb
volumes:
- name: testing-storage-db
hostPath:
path: /data/test-mongo-db
- name: testing-storage-conf
hostPath:
path: /data/test-mongo-conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment