SyP-

nextcloud-deployment.yaml

Nov 16th, 2020
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: nextcloud
  5. namespace: default
  6. labels:
  7. app: nextcloud
  8. spec:
  9. revisionHistoryLimit: 2
  10. strategy:
  11. type: RollingUpdate
  12. replicas: 2
  13. selector:
  14. matchLabels:
  15. app: nextcloud
  16. template:
  17. metadata:
  18. labels:
  19. app: nextcloud
  20. spec:
  21. volumes:
  22. - name: nextcloud-storage
  23. persistentVolumeClaim:
  24. claimName: nextcloud-claim
  25. containers:
  26. - image: nextcloud:latest
  27. name: nextcloud
  28. volumeMounts:
  29. - mountPath: "/var/www/html"
  30. name: nextcloud-storage
  31. ports:
  32. - name: http
  33. containerPort: 80
RAW Paste Data