php-myadmin-deployment.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: phpmyadmin-appsmith
  5. namespace: appsmith
  6. labels:
  7. app: appsmith
  8. spec:
  9. selector:
  10. app: appsmith
  11. tier: phpmyadmin
  12. type: NodePort
  13. ports:
  14. - name: phpadmin
  15. port: 80
  16. nodePort: 30782
  17. targetPort: phpmyadm
  18. ---
  19. apiVersion: apps/v1
  20. kind: Deployment
  21. metadata:
  22. name: phpmyadmin-appsmith
  23. namespace: appsmith
  24. labels:
  25. app: appsmith
  26. spec:
  27. selector:
  28. matchLabels:
  29. app: appsmith
  30. tier: phpmyadmin
  31. strategy:
  32. type: Recreate
  33. template:
  34. metadata:
  35. labels:
  36. app: appsmith
  37. tier: phpmyadmin
  38. spec:
  39. containers:
  40. - name: phpmyadmin
  41. image: phpmyadmin
  42. ports:
  43. - containerPort: 80
  44. name: phpmyadm
  45. env:
  46. - name: PMA_HOST
  47. value: appsmith-mysql
  48. - name: PMA_PORT
  49. value: "3306"
  50. - name: MYSQL_ROOT_PASSWORD
  51. valueFrom:
  52. secretKeyRef:
  53. name: mysql-pass
  54. key: password
  55. imagePullSecrets:
  56. - name: reg-cred-secret