对齐文件规范

This commit is contained in:
2026-03-27 16:58:41 +08:00
parent 231b6713c4
commit 31709425e2
235 changed files with 5433 additions and 2850 deletions

View File

@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-hostpath-demo
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: nginx-hostpath-demo
template:
metadata:
labels:
app: nginx-hostpath-demo
spec:
nodeSelector:
kubernetes.io/hostname: ylc61
containers:
- name: nginx
image: nginx:1.27-alpine
ports:
- containerPort: 80
volumeMounts:
- name: app-data
mountPath: /usr/share/nginx/html
volumes:
- name: app-data
hostPath:
path: /data/nginx-hostpath-demo
type: DirectoryOrCreate
---
apiVersion: v1
kind: Service
metadata:
name: nginx-hostpath-demo
namespace: default
spec:
selector:
app: nginx-hostpath-demo
ports:
- port: 80
targetPort: 80
type: ClusterIP