Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: ocs-monkey
  5. labels:
  6. app: ocs-monkey
  7. spec:
  8. ports:
  9. - port: 8097
  10. name: dummy
  11. clusterIP: None
  12. selector:
  13. app: ocs-monkey
  14. ---
  15. apiVersion: apps/v1
  16. kind: StatefulSet
  17. metadata:
  18. name: osio-worker
  19. namespace: ocs-monkey
  20. spec:
  21. selector:
  22. matchLabels:
  23. app: ocs-monkey
  24. serviceName: "ocs-monkey"
  25. replicas: 3
  26. template:
  27. metadata:
  28. labels:
  29. app: ocs-monkey
  30. spec:
  31. terminationGracePeriodSeconds: 10
  32. containers:
  33. - name: osio-workload
  34. image: quay.io/johnstrunk/osio-workload
  35. imagePullPolicy: Always
  36. args:
  37. - --untar-rate
  38. - "10"
  39. - --rm-rate
  40. - "10"
  41. - --kernel-slots
  42. - "3"
  43. readinessProbe:
  44. exec:
  45. command:
  46. - /health.sh
  47. initialDelaySeconds: 5
  48. periodSeconds: 10
  49. volumeMounts:
  50. - mountPath: /data
  51. name: data
  52. ports:
  53. - containerPort: 8097
  54. name: dummy
  55. volumeClaimTemplates:
  56. - metadata:
  57. name: data
  58. spec:
  59. accessModes: [ "ReadWriteOnce" ]
  60. storageClassName: "csi-rbd"
  61. resources:
  62. requests:
  63. storage: 3Gi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement