This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
apiVersion: v1
kind: Service
metadata:
name: petshop-db
labels:
kiamol: ch18
spec:
type: ClusterIP
ports:
- port: 1433
targetPort: mssql
selector:
app: petshop
component: db
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: petshop-db
labels:
kiamol: ch18
spec:
selector:
matchLabels:
app: petshop
component: db
template:
metadata:
labels:
app: petshop
component: db
spec:
containers:
- image: sixeyed/petshop-db:1809
name: db
ports:
- containerPort: 1433
name: mssql
nodeSelector:
kubernetes.io/os: windows