phpmyadmin-rs.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: phpmyadmin
  5. labels:
  6. env: prod
  7. name: mariadb
  8. spec:
  9. replicas: 1
  10. selector:
  11. matchLabels:
  12. name: phpmyadmin
  13. template:
  14. metadata:
  15. name: phpmyadmin
  16. labels:
  17. name: phpmyadmin
  18. spec:
  19. containers:
  20. - name: phpmyadmin
  21. image: phpmyadmin
  22. env:
  23. - name: PMA_ARBITRARY
  24. value: "1"
  25. - name: PMA_HOST
  26. value: "mariadb.default.svc.cluster.local"
  27. - name: PMA_VERBOSE
  28. value: "DodgesDB"
  29. - name: PMA_PORT
  30. value: "3306"
  31. - name: PMA_ABSOLUTE_URI
  32. value: "http://db.dodges.it/"
  33. - name: PMA_CONTROLUSER
  34. value: "qdii"
  35. - name: PMA_CONTROLPASS
  36. valueFrom:
  37. secretKeyRef:
  38. name: phpmyadmin
  39. key: pma_controlpass
  40. ports:
  41. - containerPort: 80
  42. name: http
  43. livenessProbe:
  44. httpGet:
  45. path: /
  46. port: 80
  47. resources:
  48. requests:
  49. memory: "100Mi"