You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.3 KiB
YAML

10 months ago
apiVersion: apps/v1
kind: Deployment
metadata:
10 months ago
name: chain-dci-server
10 months ago
spec:
replicas: 1
selector:
matchLabels:
10 months ago
app: chain-dci-server
10 months ago
template:
metadata:
labels:
10 months ago
app: chain-dci-server
10 months ago
spec:
containers:
10 months ago
- name: chain-dci-server
image: testhub.szjixun.cn:9043/k8stest/chain-dci-server:latest
10 months ago
ports:
10 months ago
- containerPort: 20118
10 months ago
volumeMounts:
- name: logs
mountPath: /app/logs
- name: runtime
mountPath: /app/runtime
envFrom:
- configMapRef:
name: "erp-configmap"
- secretRef:
name: erp-secret
# nodeSelector:
# node: node1
imagePullSecrets:
- name: docker-login-secret
volumes:
- name: logs
nfs:
server: node0
10 months ago
path: /mnt/storage/erp/chain-dci-server/logs
10 months ago
- name: runtime
nfs:
server: node0
10 months ago
path: /mnt/storage/erp/chain-dci-server/runtime
10 months ago
---
apiVersion: v1
kind: Service
metadata:
10 months ago
name: chain-dci-server
10 months ago
spec:
type: NodePort
selector:
10 months ago
app: chain-dci-server
10 months ago
ports:
- name: http
protocol: TCP
10 months ago
nodePort: 20118
targetPort: 20118
port: 20118