apiVersion: apps/v1 kind: Deployment metadata: name: joplin labels: app: joplin spec: replicas: 1 selector: matchLabels: app: joplin template: metadata: labels: app: joplin spec: containers: - name: joplin image: etechonomy/joplin-server:2.14 ports: - containerPort: 22300 env: - name: APP_BASE_URL value: https://joplin.geesink.org - name: DB_CLIENT value: pg - name: POSTGRES_DATABASE value: joplin - name: POSTGRES_USER value: joplin - name: POSTGRES_PORT value: "5432" - name: POSTGRES_HOST value: postgres-postgresql - name: POSTGRES_PASSWORD valueFrom: secretKeyRef: name: joplinsecrets key: pgpass