Clean up K8s specs and add README.md
This commit is contained in:
@@ -25,7 +25,7 @@ spec:
|
||||
claimName: system-data
|
||||
containers:
|
||||
- name: api-server
|
||||
image: registry.millslan.net/glmdev/p5x-api:latest
|
||||
image: docker.io/glmdev/p5x-api:latest
|
||||
# TODO: (1) add a dedicated /healthz endpoint and (2) prevent that endpoint from writing to the Rocket logs
|
||||
# livenessProbe:
|
||||
# failureThreshold: 5
|
||||
@@ -36,7 +36,7 @@ spec:
|
||||
# periodSeconds: 120
|
||||
# timeoutSeconds: 10
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
- secretRef:
|
||||
name: api-env
|
||||
env:
|
||||
- name: P5X_NODE_HOSTNAME
|
||||
|
||||
13
deploy/60-service.yaml
Normal file
13
deploy/60-service.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: api
|
||||
namespace: p5x-system
|
||||
spec:
|
||||
selector:
|
||||
app: p5x-api-server
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 3450
|
||||
targetPort: p5x
|
||||
Reference in New Issue
Block a user