fc-signalcontrol: align live port and selectors
This commit is contained in:
@@ -13,7 +13,8 @@ metadata:
|
|||||||
name: signalcontrol-data
|
name: signalcontrol-data
|
||||||
namespace: fc-signalcontrol
|
namespace: fc-signalcontrol
|
||||||
labels:
|
labels:
|
||||||
app: signalcontrol-web
|
app.kubernetes.io/name: signalcontrol-web
|
||||||
|
app.kubernetes.io/part-of: flowercore
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
@@ -28,34 +29,45 @@ metadata:
|
|||||||
name: signalcontrol-web
|
name: signalcontrol-web
|
||||||
namespace: fc-signalcontrol
|
namespace: fc-signalcontrol
|
||||||
labels:
|
labels:
|
||||||
app: signalcontrol-web
|
app.kubernetes.io/name: signalcontrol-web
|
||||||
|
app.kubernetes.io/part-of: flowercore
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: signalcontrol-web
|
app.kubernetes.io/name: signalcontrol-web
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: signalcontrol-web
|
app.kubernetes.io/name: signalcontrol-web
|
||||||
|
app.kubernetes.io/part-of: flowercore
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: signalcontrol-web
|
- name: signalcontrol-web
|
||||||
image: localhost/fc-signalcontrol-web:v202604132015
|
image: localhost/fc-signalcontrol-web:latest
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 5000
|
||||||
name: http
|
name: http
|
||||||
env:
|
env:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
- name: ASPNETCORE_ENVIRONMENT
|
||||||
value: Production
|
value: Production
|
||||||
- name: ASPNETCORE_URLS
|
- name: ASPNETCORE_URLS
|
||||||
value: "http://+:8080"
|
value: "http://+:5000"
|
||||||
|
- name: ConnectionStrings__Default
|
||||||
|
value: Data Source=/data/signalcontrol.db
|
||||||
|
- name: Logging__LogLevel__Default
|
||||||
|
value: Information
|
||||||
|
- name: Auth__ApiKey
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: signalcontrol-auth
|
||||||
|
key: Auth__ApiKey
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /app/data
|
mountPath: /data
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
@@ -63,19 +75,24 @@ spec:
|
|||||||
limits:
|
limits:
|
||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
# Note: app's ApiKeyAuthenticationMiddleware blocks /health → 404. Until
|
|
||||||
# /health is moved before that middleware (or marked anonymous), use
|
|
||||||
# tcpSocket probes that just check the listener is accepting.
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
httpGet:
|
||||||
port: 8080
|
path: /health
|
||||||
|
port: http
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
|
timeoutSeconds: 5
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
httpGet:
|
||||||
port: 8080
|
path: /health
|
||||||
|
port: http
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
failureThreshold: 6
|
||||||
|
timeoutSeconds: 5
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 4200
|
||||||
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -86,12 +103,15 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: signalcontrol-web
|
name: signalcontrol-web
|
||||||
namespace: fc-signalcontrol
|
namespace: fc-signalcontrol
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: signalcontrol-web
|
||||||
|
app.kubernetes.io/part-of: flowercore
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: signalcontrol-web
|
app.kubernetes.io/name: signalcontrol-web
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8080
|
targetPort: http
|
||||||
name: http
|
name: http
|
||||||
---
|
---
|
||||||
apiVersion: cert-manager.io/v1
|
apiVersion: cert-manager.io/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user