Created
July 4, 2020 17:52
-
-
Save suhas86/5b7079b2aae9ed91c9af11e2ff34d0bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: auth-depl | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: auth | |
template: | |
metadata: | |
labels: | |
app: auth | |
spec: | |
containers: | |
- name: auth | |
image: suhas86/quiz-auth | |
env: | |
- name: MONGO_URI | |
value: "mongodb://auth-mongo-srv:27017/auth" | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: auth-srv | |
spec: | |
selector: | |
app: auth | |
ports: | |
- name: auth | |
protocol: TCP | |
port: 3000 | |
targetPort: 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment