Skip to content
Snippets Groups Projects
Commit a03af4c6 authored by Leah Tacke genannt Unterberg's avatar Leah Tacke genannt Unterberg
Browse files

scaled deployment to 0 and changed service nodeport to cluster ip

parent c5e09cf5
Branches master
No related tags found
No related merge requests found
justfile 0 → 100644
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
......@@ -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: "2Gi"
cpu: "1000m"
memory: "1Gi"
cpu: "500m"
requests:
memory: "512Mi"
cpu: "500m"
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment