Skip to content
Snippets Groups Projects

Resolve "(CTTC) Update NBI WebSocket endpoints to Flask-SocketIO and use gunicorn"

Compare and
1000+ files
+ 587
486
Compare changes
  • Side-by-side
  • Inline
Files
1000+
+ 25
24
@@ -23,9 +23,6 @@ spec:
@@ -23,9 +23,6 @@ spec:
replicas: 1
replicas: 1
template:
template:
metadata:
metadata:
annotations:
config.linkerd.io/skip-inbound-ports: "8762"
config.linkerd.io/skip-outbound-ports: "8762"
labels:
labels:
app: nbiservice
app: nbiservice
spec:
spec:
@@ -36,22 +33,31 @@ spec:
@@ -36,22 +33,31 @@ spec:
imagePullPolicy: Always
imagePullPolicy: Always
ports:
ports:
- containerPort: 8080
- containerPort: 8080
- containerPort: 9090
# Metrics disabled for now. No NBI endpoint uses it and
- containerPort: 9192
# causes "address already in use" when deploying multiple
- containerPort: 8761
# gunicorn workers.
 
#- containerPort: 9192
env:
env:
- name: LOG_LEVEL
- name: LOG_LEVEL
value: "INFO"
value: "INFO"
 
- name: FLASK_ENV
 
value: "production" # change to "development" if developing
- name: IETF_NETWORK_RENDERER
- name: IETF_NETWORK_RENDERER
value: "LIBYANG"
value: "LIBYANG"
- name: WS_IP_PORT
value: "8761"
readinessProbe:
readinessProbe:
exec:
httpGet:
command: ["/bin/grpc_health_probe", "-addr=:9090"]
path: /healthz
 
port: 8080
 
initialDelaySeconds: 5
 
periodSeconds: 10
 
failureThreshold: 3
livenessProbe:
livenessProbe:
exec:
httpGet:
command: ["/bin/grpc_health_probe", "-addr=:9090"]
path: /healthz
 
port: 8080
 
initialDelaySeconds: 5
 
periodSeconds: 10
 
failureThreshold: 3
resources:
resources:
requests:
requests:
cpu: 50m
cpu: 50m
@@ -75,15 +81,10 @@ spec:
@@ -75,15 +81,10 @@ spec:
protocol: TCP
protocol: TCP
port: 8080
port: 8080
targetPort: 8080
targetPort: 8080
- name: grpc
# Metrics disabled for now. No NBI endpoint uses it and
protocol: TCP
# causes "address already in use" when deploying multiple
port: 9090
# gunicorn workers.
targetPort: 9090
#- name: metrics
- name: metrics
# protocol: TCP
protocol: TCP
# port: 9192
port: 9192
# targetPort: 9192
targetPort: 9192
- name: websocket
protocol: TCP
port: 8761
targetPort: 8761
Loading