mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 09:27:16 +02:00
Use terraform to config GCP proxy setup
With terraform (https://terraform.io) we can convert most of the infrastructure setup into code. This simplifies setting up a new proxy as well as providing reproducibility in the setup, eliminating human errors as much as possible. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190634711
This commit is contained in:
parent
2bbde9d9a9
commit
6dec95b980
15 changed files with 641 additions and 30 deletions
|
@ -14,10 +14,6 @@ spec:
|
|||
labels:
|
||||
app: proxy
|
||||
spec:
|
||||
volumes:
|
||||
- name: service-account-key
|
||||
secret:
|
||||
secretName: service-account
|
||||
containers:
|
||||
- name: proxy
|
||||
image: gcr.io/GCP_PROJECT/IMAGE_NAME:bazel
|
||||
|
@ -38,14 +34,9 @@ spec:
|
|||
port: health-check
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
volumeMounts:
|
||||
- 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-key.json
|
||||
- name: POD_ID
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue