mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
Add all necessary proxy configuration for QA (#1416)
* Add all necessary proxy configuration for QA Add configuration files, deployment files and the necessary enum values for the QA environment.
This commit is contained in:
parent
e9805ecf7d
commit
71e3427fdf
5 changed files with 112 additions and 0 deletions
54
proxy/kubernetes/proxy-deployment-qa-canary.yaml
Normal file
54
proxy/kubernetes/proxy-deployment-qa-canary.yaml
Normal file
|
@ -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
|
||||||
|
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", "qa_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
|
54
proxy/kubernetes/proxy-deployment-qa.yaml
Normal file
54
proxy/kubernetes/proxy-deployment-qa.yaml
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
namespace: default
|
||||||
|
name: proxy-deployment
|
||||||
|
labels:
|
||||||
|
app: proxy
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: proxy
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: proxy
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: proxy
|
||||||
|
image: gcr.io/GCP_PROJECT/proxy
|
||||||
|
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", "qa", "--log"]
|
||||||
|
env:
|
||||||
|
- name: POD_ID
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: NAMESPACE_ID
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: CONTAINER_NAME
|
||||||
|
value: proxy
|
|
@ -30,6 +30,8 @@ public class ProxyConfig {
|
||||||
SANDBOX_CANARY,
|
SANDBOX_CANARY,
|
||||||
CRASH,
|
CRASH,
|
||||||
CRASH_CANARY,
|
CRASH_CANARY,
|
||||||
|
QA,
|
||||||
|
QA_CANARY,
|
||||||
ALPHA,
|
ALPHA,
|
||||||
LOCAL,
|
LOCAL,
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
# Add environment-specific proxy configuration here.
|
|
@ -0,0 +1 @@
|
||||||
|
# Add environment-specific proxy configuration here.
|
Loading…
Add table
Reference in a new issue