Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: mongo
spec:
serviceName: mongo
template:
metadata:
labels:
name: mongo
name: mongo
spec:
terminationGracePeriodSeconds: 10
containers:
- name: mongo
image: localhost:5000/mongo
imagePullPolicy: Always
ports:
- containerPort: 27017
name: mongo
volumeMounts:
- name: mongo-data
mountPath: /srv/mongodb/
volumes:
- name: mongo-data
persistentVolumeClaim:
claimName: mongo-data-pvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.