apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" generation: 2 labels: app: wordpress name: wordpress namespace: wordpress-example spec: replicas: 1 selector: matchLabels: app: wordpress strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 0 type: RollingUpdate template: metadata: labels: app: wordpress spec: containers: - image: wordpress:latest name: wordpress ports: - containerPort: 80 name: http volumeMounts: - name: wordpress mountPath: /var/www/html volumes: - name: wordpress emptyDir: {}