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
No related branches found
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: ...@@ -10,7 +10,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: mdata-app app.kubernetes.io/name: mdata-app
replicas: 1 replicas: 0
revisionHistoryLimit: 5 revisionHistoryLimit: 5
strategy: strategy:
type: Recreate type: Recreate
...@@ -38,8 +38,8 @@ spec: ...@@ -38,8 +38,8 @@ spec:
name: tmp name: tmp
resources: resources:
limits: limits:
memory: "2Gi" memory: "1Gi"
cpu: "1000m" cpu: "500m"
requests: requests:
memory: "512Mi" memory: "512Mi"
cpu: "500m" cpu: "500m"
......
...@@ -7,11 +7,13 @@ metadata: ...@@ -7,11 +7,13 @@ metadata:
app.kubernetes.io/name: mdata-app app.kubernetes.io/name: mdata-app
spec: spec:
externalTrafficPolicy: Cluster externalTrafficPolicy: Cluster
ports:
- port: 80
protocol: TCP
targetPort: 8501
selector: selector:
app.kubernetes.io/name: mdata-app app.kubernetes.io/name: mdata-app
type: NodePort ports:
- port: 8501
protocol: TCP
# targetPort: 8501
type: ClusterIP
#
# type: NodePort
sessionAffinity: ClientIP 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