43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: apolo-websocket
|
|
namespace: apolo
|
|
labels:
|
|
app.kubernetes.io/name: apolo-websocket
|
|
app.kubernetes.io/part-of: apolo
|
|
app.kubernetes.io/component: websocket
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: apolo-websocket
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: apolo-websocket
|
|
app.kubernetes.io/part-of: apolo
|
|
app.kubernetes.io/component: websocket
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: harbor-cred-apolo
|
|
containers:
|
|
- name: websocket
|
|
image: harbor.c2et.net/apolo/xrf-websocket:6.0
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: ws
|
|
containerPort: 6001
|
|
- name: admin
|
|
containerPort: 9601
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: 6001
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 6001
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 20
|