Sin descripción

deployment.yml 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # deployment
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. namespace: iris-web
  6. name: iris-worker-deployment
  7. labels:
  8. app: iris-worker
  9. site: iris
  10. spec:
  11. replicas: 1
  12. selector:
  13. matchLabels:
  14. app: iris-worker
  15. template:
  16. metadata:
  17. labels:
  18. app: iris-worker
  19. spec:
  20. containers:
  21. - name: iris-worker
  22. image: iriswebapp_app:v2.2.2
  23. command: ['./wait-for-iriswebapp.sh', 'iris-app-service:8000', './iris-entrypoint.sh', 'iris-worker']
  24. env:
  25. - name: POSTGRES_USER
  26. valueFrom:
  27. secretKeyRef:
  28. name: iris-app-secrets
  29. key: POSTGRES_USER
  30. - name: POSTGRES_PASSWORD
  31. valueFrom:
  32. secretKeyRef:
  33. name: iris-app-secrets
  34. key: POSTGRES_PASSWORD
  35. - name: POSTGRES_ADMIN_USER
  36. valueFrom:
  37. secretKeyRef:
  38. name: iris-app-secrets
  39. key: POSTGRES_ADMIN_USER
  40. - name: POSTGRES_ADMIN_PASSWORD
  41. valueFrom:
  42. secretKeyRef:
  43. name: iris-app-secrets
  44. key: POSTGRES_ADMIN_PASSWORD
  45. - name: POSTGRES_PORT
  46. valueFrom:
  47. secretKeyRef:
  48. name: iris-app-secrets
  49. key: POSTGRES_PORT
  50. - name: IRIS_SECRET_KEY
  51. valueFrom:
  52. secretKeyRef:
  53. name: iris-app-secrets
  54. key: IRIS_SECRET_KEY
  55. - name: IRIS_SECURITY_PASSWORD_SALT
  56. valueFrom:
  57. secretKeyRef:
  58. name: iris-app-secrets
  59. key: IRIS_SECURITY_PASSWORD_SALT
  60. - name: POSTGRES_SERVER
  61. valueFrom:
  62. configMapKeyRef:
  63. name: worker-data
  64. key: POSTGRES_SERVER
  65. - name: CELERY_BROKER
  66. valueFrom:
  67. configMapKeyRef:
  68. name: worker-data
  69. key: CELERY_BROKER
  70. - name: IRIS_WORKER
  71. valueFrom:
  72. configMapKeyRef:
  73. name: worker-data
  74. key: IRIS_WORKER
  75. volumeMounts:
  76. - name: iris-pcv
  77. mountPath: /home/iris/downloads
  78. subPath: downloads
  79. - name: iris-pcv
  80. mountPath: /home/iris/user_templates
  81. subPath: user_templates
  82. - name: iris-pcv
  83. mountPath: /home/iris/server_data
  84. subPath: server_data
  85. volumes:
  86. - name: iris-pcv
  87. persistentVolumeClaim:
  88. claimName: iris-psql-claim