apiVersion: v1 kind: Service metadata: name: hello-dos spec: type: ClusterIP ports: - name: http port: 80 selector: app: hello-dos --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: hello-dos-pv-claim labels: app: hello-dos spec: accessModes: - ReadWriteMany storageClassName: "" resources: requests: storage: 2Gi --- apiVersion: apps/v1 kind: Deployment metadata: name: hello-dos labels: app: hello-dos spec: selector: matchLabels: app: hello-dos tier: frontend strategy: type: Recreate template: metadata: labels: app: hello-dos tier: frontend spec: containers: - name: hello-dos #image: linuxserver/nginx image: docker-registry:32000/minginx:2.0 #image: httpd ports: - containerPort: 80 volumeMounts: - name: hello-dos-folder mountPath: /usr/share/nginx/html imagePullSecrets: - name: reg-cred-secret volumes: - name: hello-dos-folder persistentVolumeClaim: claimName: hello-dos-pv-claim