Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ToDo-App Jan Schnaidt and Abdullah Kiran
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abdullah Kiran
ToDo-App Jan Schnaidt and Abdullah Kiran
Commits
ae697b29
Commit
ae697b29
authored
5 months ago
by
Abdullah Kiran
Browse files
Options
Downloads
Patches
Plain Diff
add minikube deployment/service script for backend
parent
657e2761
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
minikube-prod/backend.yaml
+44
-0
44 additions, 0 deletions
minikube-prod/backend.yaml
minikube-prod/mongodb.yaml
+0
-0
0 additions, 0 deletions
minikube-prod/mongodb.yaml
with
44 additions
and
0 deletions
minikube-prod/backend.yaml
0 → 100644
+
44
−
0
View file @
ae697b29
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
backend-deployment
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
backend
template
:
metadata
:
labels
:
app
:
backend
spec
:
containers
:
-
name
:
backend-container
image
:
backend-image
ports
:
-
containerPort
:
9876
env
:
-
name
:
MONGO_USER
value
:
tododbuser
-
name
:
MONGO_PASSWORD
value
:
tododbadminpassword
-
name
:
MONGO_HOST
value
:
mongodb-servicevice in Kubernetes.
-
name
:
MONGO_PORT
value
:
"
27017"
-
name
:
MONGO_DB
value
:
todo
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
backend-service
spec
:
selector
:
app
:
backend
ports
:
-
protocol
:
TCP
port
:
80
targetPort
:
9876
type
:
ClusterIP
This diff is collapsed.
Click to expand it.
minikube-prod/mongo.yaml
→
minikube-prod/mongo
db
.yaml
+
0
−
0
View file @
ae697b29
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment