Files
todo-frontend/k8s/deployment.yaml

38 lines
667 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: todo-frontend
namespace: drone
labels:
app: todo-frontend
spec:
replicas: 1
selector:
matchLabels:
app: todo-frontend
template:
metadata:
labels:
app: todo-frontend
spec:
imagePullSecrets:
- name: tencentyun-secret
containers:
- name: todo-frontend
image: ccr.ccs.tencentyun.com/violin/todo-frontend:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: todo-frontend
namespace: drone
spec:
selector:
app: todo-frontend
ports:
- port: 80
targetPort: 80
type: ClusterIP