Files
more_dots/k8s/deployment.yaml
T

36 lines
647 B
YAML
Raw Normal View History

2026-03-02 15:35:02 +08:00
apiVersion: apps/v1
kind: Deployment
metadata:
2026-03-03 17:04:35 +08:00
name: more-dots
namespace: more-dots
2026-03-02 15:35:02 +08:00
spec:
replicas: 2
selector:
matchLabels:
2026-03-03 17:04:35 +08:00
app: more-dots
2026-03-02 15:35:02 +08:00
template:
metadata:
labels:
2026-03-03 17:04:35 +08:00
app: more-dots
2026-03-02 15:35:02 +08:00
spec:
containers:
2026-03-03 17:04:35 +08:00
- name: more-dots
2026-03-02 15:35:02 +08:00
image: harbor.yourdomain.com/library/more_dots:${IMAGE_TAG}
ports:
- containerPort: 8000
env:
- name: ENVIRONMENT
value: ${DEPLOY_ENV}
---
apiVersion: v1
kind: Service
metadata:
2026-03-03 17:04:35 +08:00
name: more-dots-service
namespace: more-dots
2026-03-02 15:35:02 +08:00
spec:
selector:
2026-03-03 17:04:35 +08:00
app: more-dots
2026-03-02 15:35:02 +08:00
ports:
- port: 80
targetPort: 8000
type: ClusterIP