mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02:00
Move autoscale object to service yaml file
The autoscaling manifest doesn't really change much from environment to environment. It makes sense to move it to the service yaml file, which is not environment dependent. Also enhanced bashrc function to update the deployment manifest when deploy the proxy to alpha ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=193407184
This commit is contained in:
parent
b885d01c0c
commit
77bfa5f4b8
5 changed files with 32 additions and 45 deletions
|
@ -48,18 +48,3 @@ spec:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: CONTAINER_NAME
|
- name: CONTAINER_NAME
|
||||||
value: proxy
|
value: proxy
|
||||||
---
|
|
||||||
apiVersion: autoscaling/v2beta1
|
|
||||||
kind: HorizontalPodAutoscaler
|
|
||||||
metadata:
|
|
||||||
namespace: default
|
|
||||||
name: proxy-autoscale
|
|
||||||
labels:
|
|
||||||
app: proxy
|
|
||||||
spec:
|
|
||||||
scaleTargetRef:
|
|
||||||
apiVersion: extensions/v1beta1
|
|
||||||
kind: Deployment
|
|
||||||
name: proxy-deployment
|
|
||||||
maxReplicas: 5
|
|
||||||
minReplicas: 1
|
|
||||||
|
|
|
@ -48,18 +48,4 @@ spec:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: CONTAINER_NAME
|
- name: CONTAINER_NAME
|
||||||
value: proxy-canary
|
value: proxy-canary
|
||||||
---
|
|
||||||
apiVersion: autoscaling/v2beta1
|
|
||||||
kind: HorizontalPodAutoscaler
|
|
||||||
metadata:
|
|
||||||
namespace: default
|
|
||||||
name: proxy-autoscale-canary
|
|
||||||
labels:
|
|
||||||
app: proxy-canary
|
|
||||||
spec:
|
|
||||||
scaleTargetRef:
|
|
||||||
apiVersion: extensions/v1beta1
|
|
||||||
kind: Deployment
|
|
||||||
name: proxy-deployment-canary
|
|
||||||
maxReplicas: 5
|
|
||||||
minReplicas: 1
|
|
||||||
|
|
|
@ -48,18 +48,4 @@ spec:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: CONTAINER_NAME
|
- name: CONTAINER_NAME
|
||||||
value: proxy
|
value: proxy
|
||||||
---
|
|
||||||
apiVersion: autoscaling/v2beta1
|
|
||||||
kind: HorizontalPodAutoscaler
|
|
||||||
metadata:
|
|
||||||
namespace: default
|
|
||||||
name: proxy-autoscale
|
|
||||||
labels:
|
|
||||||
app: proxy
|
|
||||||
spec:
|
|
||||||
scaleTargetRef:
|
|
||||||
apiVersion: extensions/v1beta1
|
|
||||||
kind: Deployment
|
|
||||||
name: proxy-deployment
|
|
||||||
maxReplicas: 5
|
|
||||||
minReplicas: 1
|
|
||||||
|
|
|
@ -23,3 +23,18 @@ spec:
|
||||||
targetPort: epp
|
targetPort: epp
|
||||||
name: epp
|
name: epp
|
||||||
type: NodePort
|
type: NodePort
|
||||||
|
---
|
||||||
|
apiVersion: autoscaling/v2beta1
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
namespace: default
|
||||||
|
name: proxy-autoscale-canary
|
||||||
|
labels:
|
||||||
|
app: proxy-canary
|
||||||
|
spec:
|
||||||
|
scaleTargetRef:
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
name: proxy-deployment-canary
|
||||||
|
maxReplicas: 5
|
||||||
|
minReplicas: 1
|
||||||
|
|
|
@ -23,3 +23,18 @@ spec:
|
||||||
targetPort: epp
|
targetPort: epp
|
||||||
name: epp
|
name: epp
|
||||||
type: NodePort
|
type: NodePort
|
||||||
|
---
|
||||||
|
apiVersion: autoscaling/v2beta1
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
namespace: default
|
||||||
|
name: proxy-autoscale
|
||||||
|
labels:
|
||||||
|
app: proxy
|
||||||
|
spec:
|
||||||
|
scaleTargetRef:
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
name: proxy-deployment
|
||||||
|
maxReplicas: 5
|
||||||
|
minReplicas: 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue