暫無描述

deployment.yml 2.2KB

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