apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: nginx
  replicas: 1
  template:
    metadata:
      labels:
        app.kubernetes.io/name: nginx
    spec:
      containers:
        - name: nginx
          image: nginx:1.29.4-alpine
          ports:
            - containerPort: 80
          volumeMounts:
            - name: secret-file
              mountPath: /usr/share/nginx/html
              readOnly: true
      volumes:
        - name: secret-file
          secret:
            secretName: secret-page
            items:
              - key: index.html
                path: index.html
