Skip to content

Instantly share code, notes, and snippets.

@suhas86
Created July 4, 2020 18:00
Show Gist options
  • Save suhas86/574aa1550b5bce90b34dc703fabdd9f9 to your computer and use it in GitHub Desktop.
Save suhas86/574aa1550b5bce90b34dc703fabdd9f9 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-mongo-depl
spec:
replicas: 1
selector:
matchLabels:
app: auth-mongo
template:
metadata:
labels:
app: auth-mongo
spec:
containers:
- name: auth-mongo
image: mongo
---
apiVersion: v1
kind: Service
metadata:
name: auth-mongo-srv
spec:
selector:
app: auth-mongo
ports:
- name: db
protocol: TCP
port: 27017
targetPort: 27017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment