May 28, 2021 09:39
Thank you, your help gave me a new lead.
May 28, 2021 09:37
Yes after debugging, I am agree with you, It 's not Kubernetes issues.
May 28, 2021 09:35
also pushing and syncing image from docker hub
May 28, 2021 09:34
by the way, I am using skaffold
May 28, 2021 09:33
this image contain schema.prisma file
May 28, 2021 09:32
yes
May 28, 2021 09:32
datasource db {
provider = "postgresql"
url = "postgresql://postgres:[email protected]:5432/postgresdb?schema=public"
}

generator client {
provider = "prisma-client-js"
}
May 28, 2021 09:32
inside schema.prisma file
May 28, 2021 09:29
apiVersion: apps/v1
kind: Deployment
metadata:
name: ecom-master-depl
spec:
replicas: 1
selector:
matchLabels:
app: ecom-master
template:
metadata:
labels:
app: ecom-master
spec:
containers:
- name: ecom-master
image: lordrafiq/ecom-master
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "256Mi"
cpu: "500m"
env:
- name: NATS_CLIENT_ID
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NATS_URL
value: "http://nats-srv:4222"
- name: NATS_CLUSTER_ID
value: "ticketing"

- name: JWT_KEY
May 28, 2021 09:28
apiVersion: v1
kind: ConfigMap
metadata:
name: postgres-config
labels:
app: postgres
data:
POSTGRES_DB: postgresdb
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: postgres-pv-volume
labels:
app: postgres
type: local
spec:
storageClassName: manual
capacity:
storage: 5Gi
accessModes:
- ReadWriteMany
hostPath:
path: /var/lib/data
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: postgres-pv-claim
labels:
app: postgres
spec:
storageClassName: manual
May 28, 2021 09:27
cluster as a deployment
May 28, 2021 09:26
I am inside minikube,
May 28, 2021 09:25
yes
May 28, 2021 09:24
unsuccessful
May 28, 2021 09:23
I am following above url
May 28, 2021 09:22
yes
May 28, 2021 09:21
please advice me how I will debug
May 28, 2021 09:19
May 28, 2021 09:14
ok
May 28, 2021 09:14
yes that is alpine
May 28, 2021 09:14
May 28, 2021 09:13
will I be able to install postgresql-client, inside busybox?
May 28, 2021 09:10
May 28, 2021 09:07
I have 2 pod, 2nd one dose not have bash access
May 28, 2021 09:05
May 28, 2021 09:00
ok
May 28, 2021 08:59
I download postgres image from docker and deployed in k8s cluster
May 28, 2021 08:57
sure, thanks, by the way I am able to access the psql inside of my pod, will it help?
May 28, 2021 08:54
sure that's will be great help, by the way I am new to kubernets world :D
May 28, 2021 08:54
it's been a rough day, I am trying to establish connection almost 3 hr's
May 28, 2021 08:53
hi
May 28, 2021 08:52
they are in the same name space, I am using prisma orm
May 28, 2021 08:52
Can't reach database server at postgres-srv.default.svc.cluster.local:5432
May 28, 2021 08:52
yes from different pod
May 28, 2021 08:52
@Yayotrón thank you but same result: Can't reach database server at postgres-srv.default:5432
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Apr 27, 2020 20:55
Hi everyone, I am new to both Javascript and Stackoverflow, After googling I got interested in MERN Stack, started to learning nodejs. Is mern stack good?