mirror of
https://github.com/google/nomulus
synced 2025-12-23 06:15:42 +00:00
Add an annotation to the deployment (#2683)
This allows us to easily tell which tag was deployed. Also set the gateway to use named address so they are stable, and so that we can attach an IPv6 record to it. Auto-provisioned addresses are IPv4 only.
This commit is contained in:
@@ -4,6 +4,11 @@ metadata:
|
|||||||
name: nomulus
|
name: nomulus
|
||||||
spec:
|
spec:
|
||||||
gatewayClassName: gke-l7-global-external-managed-mc
|
gatewayClassName: gke-l7-global-external-managed-mc
|
||||||
|
addresses:
|
||||||
|
- type: NamedAddress
|
||||||
|
value: nomulus-ipv4-address
|
||||||
|
- type: NamedAddress
|
||||||
|
value: nomulus-ipv6-address
|
||||||
listeners:
|
listeners:
|
||||||
- name: http
|
- name: http
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: backend
|
name: backend
|
||||||
|
annotations:
|
||||||
|
tag: "latest"
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: console
|
name: console
|
||||||
|
annotations:
|
||||||
|
tag: "latest"
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: frontend
|
name: frontend
|
||||||
|
annotations:
|
||||||
|
tag: "latest"
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: pubapi
|
name: pubapi
|
||||||
|
annotations:
|
||||||
|
tag: "latest"
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
@@ -188,6 +188,7 @@ steps:
|
|||||||
do
|
do
|
||||||
# non-canary
|
# non-canary
|
||||||
sed s/GCP_PROJECT/${PROJECT_ID}/g ./jetty/kubernetes/nomulus-${service}.yaml | \
|
sed s/GCP_PROJECT/${PROJECT_ID}/g ./jetty/kubernetes/nomulus-${service}.yaml | \
|
||||||
|
sed s/latest/${TAG_NAME}/g | \
|
||||||
sed s/ENVIRONMENT/${env}/g | \
|
sed s/ENVIRONMENT/${env}/g | \
|
||||||
sed s/PROXY_ENV/"${env}"/g | \
|
sed s/PROXY_ENV/"${env}"/g | \
|
||||||
sed s/EPP/"epp"/g > ./jetty/kubernetes/nomulus-${env}-${service}.yaml
|
sed s/EPP/"epp"/g > ./jetty/kubernetes/nomulus-${env}-${service}.yaml
|
||||||
@@ -203,6 +204,7 @@ steps:
|
|||||||
fi
|
fi
|
||||||
# canary
|
# canary
|
||||||
sed s/GCP_PROJECT/${PROJECT_ID}/g ./jetty/kubernetes/nomulus-${service}.yaml | \
|
sed s/GCP_PROJECT/${PROJECT_ID}/g ./jetty/kubernetes/nomulus-${service}.yaml | \
|
||||||
|
sed s/latest/${TAG_NAME}/g | \
|
||||||
sed s/ENVIRONMENT/${env}/g | \
|
sed s/ENVIRONMENT/${env}/g | \
|
||||||
sed s/PROXY_ENV/"${env}_canary"/g | \
|
sed s/PROXY_ENV/"${env}_canary"/g | \
|
||||||
sed s/EPP/"epp-canary"/g | \
|
sed s/EPP/"epp-canary"/g | \
|
||||||
|
|||||||
Reference in New Issue
Block a user