ci(neuron-prod): blue-green flip to green@v0.18.8 (registry.neuralplatform.ai/neuron-technologies/neuron-mcp:v0.18.8)
This commit is contained in:
@@ -9,7 +9,7 @@ metadata:
|
|||||||
env: prod
|
env: prod
|
||||||
spec:
|
spec:
|
||||||
# Scaled to 0 when inactive. Deploy process scales to 1, verifies health, then switches service.
|
# Scaled to 0 when inactive. Deploy process scales to 1, verifies health, then switches service.
|
||||||
replicas: 0
|
replicas: 1
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
@@ -29,7 +29,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: neuron-mcp
|
- name: neuron-mcp
|
||||||
# IMAGE UPDATED HERE before scaling to 1
|
# IMAGE UPDATED HERE before scaling to 1
|
||||||
image: registry.neuralplatform.ai/neuron-technologies/neuron-mcp:514db58
|
image: registry.neuralplatform.ai/neuron-technologies/neuron-mcp:v0.18.8
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ metadata:
|
|||||||
slot: blue
|
slot: blue
|
||||||
env: prod
|
env: prod
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 0
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
@@ -39,7 +39,7 @@ spec:
|
|||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: false # JVM writes temp files; restrict paths via allowedPaths once profiled
|
readOnlyRootFilesystem: false # JVM writes temp files; restrict paths via allowedPaths once profiled
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
capabilities:
|
capabilities:
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
# Blue/green: change slot to "green" then back to "blue" to switch traffic.
|
# Blue/green: change slot to "green" then back to "blue" to switch traffic.
|
||||||
# Process: deploy green → verify health → patch this selector → scale blue to 0.
|
# Process: deploy green → verify health → patch this selector → scale blue to 0.
|
||||||
neuron.ai/active-slot: "blue"
|
neuron.ai/active-slot: "green"
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: neuron-mcp
|
app: neuron-mcp
|
||||||
slot: blue
|
slot: green
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 8080
|
port: 8080
|
||||||
|
|||||||
Reference in New Issue
Block a user