google-nomulus/java/google/registry/proxy/kubernetes/proxy-service.yaml
jianglai 77bfa5f4b8 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
2018-04-23 14:57:52 -04:00

40 lines
714 B
YAML

kind: Service
apiVersion: v1
metadata:
namespace: default
name: proxy-service
spec:
selector:
app: proxy
ports:
- protocol: TCP
port: 30000
nodePort: 30000
targetPort: health-check
name: health-check
- protocol: TCP
port: 30001
nodePort: 30001
targetPort: whois
name: whois
- protocol: TCP
port: 30002
nodePort: 30002
targetPort: epp
name: epp
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