webserver.deployment.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. deployment.kubernetes.io/revision: '1'
  6. labels:
  7. run: webserver
  8. name: webserver
  9. namespace: demo
  10. spec:
  11. progressDeadlineSeconds: 600
  12. replicas: 2
  13. revisionHistoryLimit: 10
  14. selector:
  15. matchLabels:
  16. run: webserver
  17. strategy:
  18. rollingUpdate:
  19. maxSurge: 1
  20. maxUnavailable: 1
  21. type: RollingUpdate
  22. template:
  23. metadata:
  24. creationTimestamp: null
  25. labels:
  26. run: webserver
  27. spec:
  28. containers:
  29. - image: nginx
  30. imagePullPolicy: Always
  31. name: webserver
  32. resources: {}
  33. terminationMessagePath: /dev/termination-log
  34. terminationMessagePolicy: File
  35. volumeMounts:
  36. - mountPath: /usr/share/nginx/html
  37. name: html
  38. dnsPolicy: ClusterFirst
  39. restartPolicy: Always
  40. schedulerName: default-scheduler
  41. securityContext: {}
  42. terminationGracePeriodSeconds: 30
  43. volumes:
  44. - configMap:
  45. defaultMode: 420
  46. name: httpdocs
  47. name: html