deploy.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. labels:
  5. app: scis-bpm-server
  6. name: scis-bpm-server
  7. namespace: scis
  8. spec:
  9. replicas: 1
  10. selector:
  11. matchLabels:
  12. app: scis-bpm-server
  13. strategy:
  14. rollingUpdate:
  15. maxSurge: 25%
  16. maxUnavailable: 25%
  17. type: RollingUpdate
  18. template:
  19. metadata:
  20. labels:
  21. app: scis-bpm-server
  22. spec:
  23. containers:
  24. - name: scis-bpm-server
  25. image: 10.0.100.160:30000/scis/scis-bpm-server:master-20200408-1
  26. imagePullPolicy: Always
  27. env:
  28. - name: JAVA_OPTS
  29. value: $JAVA_OPTS
  30. - name: SKYWALKING_OPTS
  31. value: -javaagent:/opt/skywalking-agent.jar
  32. - name: SW_AGENT_NAME
  33. value: scis-bpm-server
  34. - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
  35. value: skywalking-oap.default:11800
  36. resources:
  37. limits:
  38. memory: 4Gi
  39. requests:
  40. memory: 2Gi
  41. volumeMounts:
  42. - name: skywalking-agent
  43. mountPath: /opt
  44. - name: bpm-pv
  45. mountPath: /media
  46. volumes:
  47. - name: skywalking-agent
  48. persistentVolumeClaim:
  49. claimName: skywalking-agent-pv-pvc
  50. - name: bpm-pv
  51. persistentVolumeClaim:
  52. claimName: bpm-pv-pvc
  53. imagePullSecrets:
  54. - name: registry-auth-secret