Skip to content

Commit 8ff94a0

Browse files
committed
promtorture: fixes for initial deploy script
1 parent 8d2075b commit 8ff94a0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

testcases/promtorture/scripts/kind-create.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ yq '
2424
|select(
2525
(.kind != "CustomResourceDefinition")
2626
and (.kind != "AlertManager")
27-
)' | "${kubectl[@]}" apply --server-side -f -
28-
"${kubectl[@]}" apply --server-side -f .cache/kube-prometheus.yaml
27+
)' .cache/kube-prometheus.yaml |\
28+
"${kubectl[@]}" apply --server-side --force-conflicts -f -
2929

30-
# Scale down to 1 replica and don't deploy alertmanager
31-
"${kubectl[@]}" patch -n monitoring prometheus k8s --type merge --patch-file /dev/stdin <<'__END__'
30+
# Scale down to 1 replica and don't deploy alertmanager, add resources,
31+
# enable some feature flags, and set a low GOMEMLIMIT
32+
"${kubectl[@]}" patch -n monitoring prometheus/k8s \
33+
--type merge \
34+
--patch-file /dev/stdin <<'__END__'
3235
apiVersion: monitoring.coreos.com/v1
3336
kind: Prometheus
3437
spec:

0 commit comments

Comments
 (0)