Files
infrastructure/servers/legion/k8s/neuron-technologies/prod/services.yaml
T

53 lines
965 B
YAML

apiVersion: v1
kind: Service
metadata:
name: neuron-license
namespace: neuron-prod
labels:
app: neuron-license
spec:
selector:
app: neuron-license
ports:
- name: http
port: 8082
targetPort: 8082
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: neuron-mcp
namespace: neuron-prod
labels:
app: neuron-mcp
annotations:
# 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.
neuron.ai/active-slot: "green"
spec:
selector:
app: neuron-mcp
slot: green
ports:
- name: http
port: 8080
targetPort: 8080
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: neuron-rest
namespace: neuron-prod
labels:
app: neuron-rest
spec:
selector:
app: neuron-rest
ports:
- name: http
port: 8081
targetPort: 8081
type: ClusterIP