mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 15:11:26 +02:00
Update proxy k8s configs
Some changes are made to the configs so that they agree with the setup guide in [] Combined deployment and autoscale manifests together because they work together. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=189403435
This commit is contained in:
parent
bf872a26cc
commit
22b575b17d
2 changed files with 18 additions and 17 deletions
|
@ -1,13 +0,0 @@
|
|||
apiVersion: autoscaling/v2beta1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: proxy-autoscale
|
||||
labels:
|
||||
app: proxy
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
name: proxy-deployment
|
||||
maxReplicas: 5
|
||||
minReplicas: 1
|
|
@ -15,9 +15,9 @@ spec:
|
|||
app: proxy
|
||||
spec:
|
||||
volumes:
|
||||
- name: service-account
|
||||
- name: service-account-key
|
||||
secret:
|
||||
secretName: proxy-account
|
||||
secretName: service-account
|
||||
containers:
|
||||
- name: proxy
|
||||
image: gcr.io/GCP_PROJECT/IMAGE_NAME:bazel
|
||||
|
@ -39,13 +39,13 @@ spec:
|
|||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
volumeMounts:
|
||||
- name: service-account
|
||||
- name: service-account-key
|
||||
mountPath: /var/secrets/google
|
||||
imagePullPolicy: Always
|
||||
args: ["--env", "alpha", "--log"]
|
||||
env:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/service-account.json
|
||||
value: /var/secrets/google/service-account-key.json
|
||||
- name: POD_ID
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
|
@ -56,3 +56,17 @@ spec:
|
|||
fieldPath: metadata.namespace
|
||||
- name: CONTAINER_NAME
|
||||
value: proxy
|
||||
---
|
||||
apiVersion: autoscaling/v2beta1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: proxy-autoscale
|
||||
labels:
|
||||
app: proxy
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
name: proxy-deployment
|
||||
maxReplicas: 5
|
||||
minReplicas: 1
|
Loading…
Add table
Add a link
Reference in a new issue