Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mdata_deployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Machine Data
mdata_deployment
Commits
a03af4c6
Commit
a03af4c6
authored
1 month ago
by
Leah Tacke genannt Unterberg
Browse files
Options
Downloads
Patches
Plain Diff
scaled deployment to 0 and changed service nodeport to cluster ip
parent
c5e09cf5
Branches
master
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
justfile
+24
-0
24 additions, 0 deletions
justfile
mdata_app_deployment.yaml
+3
-3
3 additions, 3 deletions
mdata_app_deployment.yaml
mdata_app_service.yaml
+7
-5
7 additions, 5 deletions
mdata_app_service.yaml
with
34 additions
and
8 deletions
justfile
0 → 100644
+
24
−
0
View file @
a03af4c6
set windows-shell := ["pwsh", "-c"]
ctxt := "c4c"
ctxt_flag := "--context " + ctxt
default:
just --list
[no-exit-message]
apply a:
kubectl apply {{ ctxt_flag }} -f {{ a }}
with-label := "true"
[no-exit-message]
do *args="describe deployments":
kubectl {{ ctxt_flag }} {{ if with-label == "true" { "-l app.kubernetes.io/name=maed-exporter-app" } else { "" } }} {{ args }}
[no-exit-message]
minikube-start *args:
minikube start --apiserver-port=8888 --namespace mdata {{ args }}
kube *arg:
kubectl --context=c4c -n mdata {{ arg }}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
mdata_app_deployment.yaml
+
3
−
3
View file @
a03af4c6
...
...
@@ -10,7 +10,7 @@ spec:
selector
:
matchLabels
:
app.kubernetes.io/name
:
mdata-app
replicas
:
1
replicas
:
0
revisionHistoryLimit
:
5
strategy
:
type
:
Recreate
...
...
@@ -38,8 +38,8 @@ spec:
name
:
tmp
resources
:
limits
:
memory
:
"
2
Gi"
cpu
:
"
10
00m"
memory
:
"
1
Gi"
cpu
:
"
5
00m"
requests
:
memory
:
"
512Mi"
cpu
:
"
500m"
...
...
This diff is collapsed.
Click to expand it.
mdata_app_service.yaml
+
7
−
5
View file @
a03af4c6
...
...
@@ -7,11 +7,13 @@ metadata:
app.kubernetes.io/name
:
mdata-app
spec
:
externalTrafficPolicy
:
Cluster
ports
:
-
port
:
80
protocol
:
TCP
targetPort
:
8501
selector
:
app.kubernetes.io/name
:
mdata-app
type
:
NodePort
ports
:
-
port
:
8501
protocol
:
TCP
# targetPort: 8501
type
:
ClusterIP
#
# type: NodePort
sessionAffinity
:
ClientIP
\ No newline at end of file
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