Files
docs/k8s/zero-server.yaml
yinxue 9e1b8bdc9d
Some checks failed
CI Pipeline / build (push) Failing after 3m23s
first-commit
2025-08-27 14:05:33 +08:00

47 lines
975 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: zero-server
namespace: zero-server
labels:
app: zero-server
spec:
replicas: 3
revisionHistoryLimit: 5
selector:
matchLabels:
app: zero-server
template:
metadata:
labels:
app: zero-server
spec:
imagePullSecrets:
- name: my-aliyun
containers:
- name: zero-server
image: crpi-pqfsp88s5zx2zwfq.cn-hangzhou.personal.cr.aliyuncs.com/devstar/devstar_introduction:v1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8889
volumeMounts:
- name: timezone
mountPath: /etc/localtime
volumes:
- name: timezone
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
apiVersion: v1
kind: Service
metadata:
name: zero-server-svc
namespace: zero-server
spec:
ports:
- port: 8889
targetPort: 8889
nodePort: 30115
selector:
app: zero-server
type: NodePort