mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Add crash canary environment for proxy
This makes it possible to set up canary testing on crash. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=240210405
This commit is contained in:
parent
919ad108ba
commit
64edf25fbe
3 changed files with 57 additions and 1 deletions
|
@ -28,8 +28,9 @@ public class ProxyConfig {
|
||||||
PRODUCTION_CANARY,
|
PRODUCTION_CANARY,
|
||||||
SANDBOX,
|
SANDBOX,
|
||||||
SANDBOX_CANARY,
|
SANDBOX_CANARY,
|
||||||
ALPHA,
|
|
||||||
CRASH,
|
CRASH,
|
||||||
|
CRASH_CANARY,
|
||||||
|
ALPHA,
|
||||||
LOCAL,
|
LOCAL,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
# Add environment-specific proxy configuration here.
|
|
@ -0,0 +1,54 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
namespace: default
|
||||||
|
name: proxy-deployment-canary
|
||||||
|
labels:
|
||||||
|
app: proxy-canary
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: proxy-canary
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: proxy-canary
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: proxy-canary
|
||||||
|
image: gcr.io/GCP_PROJECT/proxy:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 30000
|
||||||
|
name: health-check
|
||||||
|
- containerPort: 30001
|
||||||
|
name: whois
|
||||||
|
- containerPort: 30002
|
||||||
|
name: epp
|
||||||
|
- containerPort: 30010
|
||||||
|
name: http-whois
|
||||||
|
- containerPort: 30011
|
||||||
|
name: https-whois
|
||||||
|
readinessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: health-check
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: health-check
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 20
|
||||||
|
imagePullPolicy: Always
|
||||||
|
args: ["--env", "crash_canary", "--log"]
|
||||||
|
env:
|
||||||
|
- name: POD_ID
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: NAMESPACE_ID
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: CONTAINER_NAME
|
||||||
|
value: proxy-canary
|
Loading…
Add table
Add a link
Reference in a new issue