Advertisement
roman_gemini

Untitled

Jan 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. apiVersion: apps/v1beta2
  2. kind: Deployment
  3. metadata:
  4. name: mor-stream-deployment
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. name: mor-stream
  10. strategy:
  11. type: RollingUpdate
  12. template:
  13. metadata:
  14. labels:
  15. name: mor-stream
  16. spec:
  17. containers:
  18. - image: 'myownradio/stream-server:latest'
  19. name: mor-stream
  20. readinessProbe:
  21. httpGet:
  22. path: /run
  23. port: 7778
  24. initialDelaySeconds: 90
  25. periodSeconds: 10
  26. env:
  27. - name: MOR_JDBC_LOGIN
  28. value: "mor"
  29. - name: MOR_JDBC_PASSWORD
  30. value: "mor"
  31. - name: MOR_JDBC_URL
  32. value: "jdbc:mysql://db:3306/mor"
  33. ---
  34. apiVersion: v1
  35. kind: Service
  36. metadata:
  37. name: mor-stream
  38. spec:
  39. ports:
  40. - port: 7778
  41. selector:
  42. name: mor-stream
  43. type: NodePort
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement