chore: add scale-to-zero overlay
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: math-tables
|
||||
resources:
|
||||
- ../production
|
||||
- external-service.yaml
|
||||
- http-scaled-object.yaml
|
||||
patches:
|
||||
- patch: |
|
||||
[
|
||||
{
|
||||
"op": "remove",
|
||||
"path": "/spec/replicas"
|
||||
}
|
||||
]
|
||||
target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: Deployment
|
||||
name: math-exercises-app
|
||||
- path: remove-pdb.yaml
|
||||
- patch: |
|
||||
[
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/spec/rules/0/http/paths/0/backend/service/port/number",
|
||||
"value": 8080
|
||||
},
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/spec/rules/0/http/paths/0/backend/service/name",
|
||||
"value": "keda-add-ons-http-interceptor-proxy"
|
||||
}
|
||||
]
|
||||
target:
|
||||
group: networking.k8s.io
|
||||
version: v1
|
||||
kind: Ingress
|
||||
name: math-exercises-ingress
|
||||
Reference in New Issue
Block a user