Skip to content

Commit

Permalink
Revert "Add readiness and liveness probe"
Browse files Browse the repository at this point in the history
  • Loading branch information
CatherineF-dev authored May 8, 2024
1 parent 37a0ccd commit da52203
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 107 deletions.
2 changes: 1 addition & 1 deletion custom-metrics-stackdriver-adapter/adapter-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ spec:
ports:
- port: 443
protocol: TCP
targetPort: 6443
targetPort: 443
selector:
run: custom-metrics-stackdriver-adapter
k8s-app: custom-metrics-stackdriver-adapter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,6 @@ spec:
command:
- /adapter
- --use-new-resource-model=false
- --secure-port=6443
ports:
- containerPort: 6443
name: https
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand All @@ -120,7 +100,7 @@ spec:
ports:
- port: 443
protocol: TCP
targetPort: 6443
targetPort: 443
selector:
run: custom-metrics-stackdriver-adapter
k8s-app: custom-metrics-stackdriver-adapter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,6 @@ spec:
- /adapter
- --use-new-resource-model=true
- --fallback-for-container-metrics=true
- --secure-port=6443
ports:
- containerPort: 6443
name: https
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand All @@ -138,7 +118,7 @@ spec:
ports:
- port: 443
protocol: TCP
targetPort: 6443
targetPort: 443
selector:
run: custom-metrics-stackdriver-adapter
k8s-app: custom-metrics-stackdriver-adapter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,26 +100,6 @@ spec:
- /adapter
- --use-new-resource-model=true
- --fallback-for-container-metrics=true
- --secure-port=6443
ports:
- containerPort: 6443
name: https
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand All @@ -142,7 +122,7 @@ spec:
ports:
- port: 443
protocol: TCP
targetPort: 6443
targetPort: 443
selector:
run: custom-metrics-stackdriver-adapter
k8s-app: custom-metrics-stackdriver-adapter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,6 @@ spec:
command:
- /adapter
- --use-new-resource-model=false
- --secure-port=6443
ports:
- containerPort: 6443
name: https
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand All @@ -124,7 +104,7 @@ spec:
ports:
- port: 443
protocol: TCP
targetPort: 6443
targetPort: 443
selector:
run: custom-metrics-stackdriver-adapter
k8s-app: custom-metrics-stackdriver-adapter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,26 +100,6 @@ spec:
- /adapter
- --use-new-resource-model=true
- --enable-core-metrics-api
- --secure-port=6443
ports:
- containerPort: 6443
name: https
readinessProbe:
failureThreshold: 5
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
failureThreshold: 5
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 5
resources:
limits:
cpu: 250m
Expand All @@ -142,7 +122,7 @@ spec:
ports:
- port: 443
protocol: TCP
targetPort: 6443
targetPort: 443
selector:
run: custom-metrics-stackdriver-adapter
k8s-app: custom-metrics-stackdriver-adapter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ func TestCoreprovider_GetPodMetrics_Many(t *testing.T) {
t.Fatalf("Unexpected result. Expected len: \n%v,\n received: \n%v", len(expectedPodMetrics), len(podMetrics))
}

if diff := cmp.Diff(expectedPodMetrics, podMetrics, cmpopts.SortSlices(func(a, b metrics.ContainerMetrics) bool { return a.Name < b.Name }), cmpopts.IgnoreFields(metrics.PodMetrics{}, "ObjectMeta", "CreationTimestamp")); diff != "" {
if diff := cmp.Diff(expectedPodMetrics, podMetrics, cmpopts.SortMaps(func(a, b metrics.ContainerMetrics) bool { return a.Name < b.Name }), cmpopts.IgnoreFields(metrics.PodMetrics{}, "ObjectMeta", "CreationTimestamp")); diff != "" {
t.Errorf("Has a diff, (-want, +got): %s. Want: %v, got: %v.", diff, expectedPodMetrics, podMetrics)
}

Expand Down

0 comments on commit da52203

Please sign in to comment.