Hi everyone here, don’t know if this is the correct place to find some guidance…
I’m currently trying to run passbolt community (latest) on OCP 4.10.x (openshift)
So far, i created pvc for mariadb, a deployment of mariadb and a service to expose the db to the other pod. When trying to implement the deployment of passbolt it fails and starts restarting itself to the end…
#mariadb pvc
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: passbolt-pvc-clim
namespace: passbolt
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: medium
resources:
requests:
storage: 20Gi
---
# service db
apiVersion: v1
kind: Service
metadata:
name: passbolt-db
namespace: passbolt
spec:
ports:
- port: 3306
selector:
app: passbolt-db
type: ClusterIP
---
# mariadb
apiVersion: apps/v1
kind: Deployment
metadata:
name: passbolt-db
namespace: passbolt
spec:
selector:
matchLabels:
app: passbolt-db
strategy:
type: Recreate
template:
metadata:
labels:
app: passbolt-db
spec:
containers:
- image: registry.redhat.io/rhel8/mariadb-103@sha256:ea962f43a266ea7a4d3bd51c21541df25fa34c4ff8f36ac583b5b12730488028
name: db
env:
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
name: passbolt-envs
key: MYSQL_DATABASE
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: passbolt-envs
key: MYSQL_PASSWORD
- name: MYSQL_RANDOM_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: passbolt-envs
key: MYSQL_RANDOM_ROOT_PASSWORD
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: passbolt-envs
key: MYSQL_USER
ports:
- containerPort: 3306
name: passbolt-db
---
# passbolt
apiVersion: apps/v1
kind: Deployment
metadata:
name: passbolt-web
namespace: passbolt
labels:
app: passbolt-web
spec:
replicas: 1
selector:
matchLabels:
app: passbolt-web
template:
metadata:
labels:
app: passbolt-web
spec:
containers:
- name: web
image: passbolt/passbolt:latest-ce
env:
- name: EMAIL_DEFAULT_FROM_NAME
value: NAME
- name: EMAIL_DEFAULT_FROM
value: MAIL
- name: EMAIL_TRANSPORT_DEFAULT_HOST
value: IP
- name: EMAIL_TRANSPORT_DEFAULT_PORT
value: PORT
- name: APP_FULL_BASE_URL
value: passbolt.local
- name: DATASOURCES_DEFAULT_HOST
value: passbolt-db.passbolt.svc.cluster.local
- name: DATASOURCES_DEFAULT_USERNAME
valueFrom:
secretKeyRef:
name: passbolt-envs
key: MYSQL_USER
- name: DATASOURCES_DEFAULT_PASSWORD
valueFrom:
secretKeyRef:
name: passbolt-envs
key: MYSQL_PASSWORD
- name: DATASOURCES_DEFAULT_DATABASE
valueFrom:
secretKeyRef:
name: passbolt-envs
key: MYSQL_DATABASE
command: ["/usr/bin/wait-for.sh", "-t", "0", "passbolt-db.passbolt.svc.cluster.local:3306", "--", "/docker-entrypoint.sh"]
ports:
- containerPort: 443
When seeing logs of the POD of passbolt-web it prints:
wait-for.sh: waiting for passbolt-db.passbolt.svc.cluster.local:3306 without a timeout
wait-for.sh: passbolt-db.passbolt.svc.cluster.local:3306 is available after 0 seconds
Password: su: Authentication failure
Checklist
I have read intro post: About the Installation Issues category
I have read the tutorials, help and searched for similar issues
I provide relevant information about my server (component names and versions, etc.)
I provide a copy of my logs and healthcheck
I describe the steps I have taken to trouble shoot the problem
I describe the steps on how to reproduce the issue
Thanks in advance, and sorry if something is wrong.
N