github.com/GoogleContainerTools/skaffold/v2@v2.13.2/examples/multiple-renderers/backend/templates/guestbook-mongodb.deployment.yaml (about) 1 ################################################################################ 2 # WARNING: This MongoDB deployment is not suitable for production as the data is 3 # not persistently stored and will go away every time the Pod restarts. Consider 4 # using a Helm chart that provisions a StatefulSet instead of Deployment. 5 ################################################################################ 6 kind: Deployment 7 apiVersion: apps/v1 8 metadata: 9 name: go-guestbook-mongodb 10 labels: 11 app: guestbook 12 tier: db 13 spec: 14 replicas: 1 15 selector: 16 matchLabels: 17 app: guestbook 18 tier: db 19 template: 20 metadata: 21 labels: 22 app: guestbook 23 tier: db 24 spec: 25 containers: 26 - name: mongo 27 image: mongo:4 28 ports: 29 - containerPort: 27017