mirror of
https://github.com/google/nomulus.git
synced 2025-05-29 17:00:11 +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
|
app: proxy
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: service-account
|
- name: service-account-key
|
||||||
secret:
|
secret:
|
||||||
secretName: proxy-account
|
secretName: service-account
|
||||||
containers:
|
containers:
|
||||||
- name: proxy
|
- name: proxy
|
||||||
image: gcr.io/GCP_PROJECT/IMAGE_NAME:bazel
|
image: gcr.io/GCP_PROJECT/IMAGE_NAME:bazel
|
||||||
|
@ -39,13 +39,13 @@ spec:
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: service-account
|
- name: service-account-key
|
||||||
mountPath: /var/secrets/google
|
mountPath: /var/secrets/google
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
args: ["--env", "alpha", "--log"]
|
args: ["--env", "alpha", "--log"]
|
||||||
env:
|
env:
|
||||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||||
value: /var/secrets/google/service-account.json
|
value: /var/secrets/google/service-account-key.json
|
||||||
- name: POD_ID
|
- name: POD_ID
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
|
@ -56,3 +56,17 @@ spec:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: CONTAINER_NAME
|
- name: CONTAINER_NAME
|
||||||
value: proxy
|
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