Last active
April 2, 2025 15:53
-
-
Save x95castle1/d528ea5fbe79f38cab70b8738480eda1 to your computer and use it in GitHub Desktop.
Tekton HPA Overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: tekton-pipelines-webhook-overlay | |
| namespace: tap-install | |
| stringData: | |
| tekton-pipelines-webhook-overlay.yml: | | |
| #@ load("@ytt:overlay", "overlay") | |
| #@overlay/match by=overlay.subset({"kind": "HorizontalPodAutoscaler", "metadata": {"name": "tekton-pipelines-webhook"}}), expects="0+" | |
| --- | |
| spec: | |
| #@overlay/match missing_ok=True | |
| minReplicas: 10 | |
| maxReplicas: 10 | |
| #@overlay/remove | |
| metrics: | |
| #@overlay/match by=overlay.subset({"kind": "HorizontalPodAutoscaler", "metadata": {"name": "tekton-pipelines-webhook"}}), expects="0+" | |
| --- | |
| spec: | |
| #@overlay/match missing_ok=True | |
| metrics: | |
| - resource: | |
| name: cpu | |
| target: | |
| averageUtilization: 75 | |
| type: Utilization | |
| type: Resource | |
| #@overlay/match by=overlay.subset({"kind":"Deployment","metadata":{"name":"tekton-pipelines-webhook"}}), expects="1+" | |
| --- | |
| spec: | |
| #@overlay/replace via=lambda left, _: left | |
| selector: | |
| --- | |
| apiVersion: kapp.k14s.io/v1alpha1 | |
| kind: Config | |
| rebaseRules: | |
| - path: | |
| - spec | |
| - replicas | |
| type: copy | |
| sources: | |
| - existing | |
| - new | |
| resourceMatchers: | |
| - apiGroupKindMatcher: | |
| apiGroup: apps | |
| kind: Deployment | |
| - paths: | |
| - [data, ca-cert.pem] | |
| - [data, server-cert.pem] | |
| - [data, server-key.pem] | |
| type: copy | |
| sources: [new,existing] | |
| resourceMatchers: | |
| - apiVersionKindMatcher: {apiVersion: v1, kind: Secret} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment