Files
PandaX/deploy/manifest/pandax/pandaxrule-deployment-service.yaml
2023-10-07 11:24:09 +08:00

41 lines
821 B
YAML

apiVersion: v1
kind: Service
metadata:
name: pandaxrule
labels:
app.kubernetes.io/name: pandaxrule
spec:
type: LoadBalancer
ports:
- port: 7791
targetPort: 7791
protocol: TCP
selector:
app.kubernetes.io/name: pandaxrule
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pandaxrule
labels:
app.kubernetes.io/name: pandaxrule
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: pandaxrule
template:
metadata:
labels:
app.kubernetes.io/name: pandaxrule
spec:
serviceAccountName: pandaxrule
containers:
- name: pandaxrule
image: ccr.ccs.tencentyun.com/pandax/pandaxrule:v1.8
imagePullPolicy: IfNotPresent
ports:
- containerPort: 7791
protocol: TCP