golang/go-guestbook/src/backend/kubernetes-manifests/guestbook-mongodb.deployment.yaml (24 lines of code) (raw):

################################################################################ # WARNING: This MongoDB deployment is not suitable for production as the data is # not persistently stored and will go away every time the Pod restarts. Consider # using a Helm chart that provisions a StatefulSet instead of Deployment. ################################################################################ kind: Deployment apiVersion: apps/v1 metadata: name: go-guestbook-mongodb labels: app: guestbook tier: db spec: replicas: 1 selector: matchLabels: app: guestbook tier: db template: metadata: labels: app: guestbook tier: db spec: containers: - name: mongo image: mongo:4 ports: - containerPort: 27017