Open ssmtariq opened 2 years ago
Hi @ssmtariq it looks like you are launching the framework directly from Helm, but the new microservices framework has to be launched using https://github.com/sitewhere/swctl/blob/master/README.md .. The operator injects the correct environment variables in order to allow the microservices to run.
Thank you very much. I got it. Now most of the services are running but still I got the pod sitewhere-keycloak-0 failed. When I described found the following. Could you please have a look
Name: sitewhere-keycloak-0
Namespace: sitewhere-system
Priority: 0
Node: node-3/10.10.1.4
Start Time: Thu, 02 Jun 2022 10:28:25 -0600
Labels: app.kubernetes.io/instance=sitewhere
app.kubernetes.io/name=keycloak
controller-revision-hash=sitewhere-keycloak-7c8b8fbd54
statefulset.kubernetes.io/pod-name=sitewhere-keycloak-0
Annotations: checksum/config-startup: e055e8e9a2ac44f8b75847f7e552c702e6c03e6af2bdf1f59a284cb0ef2d73f7
checksum/secrets: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
cni.projectcalico.org/podIP: 192.168.45.6/32
cni.projectcalico.org/podIPs: 192.168.45.6/32
Status: Pending
IP: 192.168.45.6
IPs:
IP: 192.168.45.6
Controlled By: StatefulSet/sitewhere-keycloak
Init Containers:
pgchecker:
Container ID: docker://f7ecc4e495ed308236323f5f0bb0ac32903a463a101ae237f6a7b19494cacb47
Image: docker.io/busybox:1.32
Image ID: docker-pullable://busybox@sha256:ae39a6f5c07297d7ab64dbd4f82c77c874cc6a94cea29fdec309d0992574b4f7
Port: <none>
Host Port: <none>
Command:
sh
-c
echo 'Waiting for PostgreSQL to become ready...'
until printf "." && nc -z -w 2 sitewhere-postgresql 5432; do
sleep 2;
done;
echo 'PostgreSQL OK ✓'
State: Running
Started: Thu, 02 Jun 2022 10:28:46 -0600
Ready: False
Restart Count: 0
Limits:
cpu: 50m
memory: 64Mi
Requests:
cpu: 50m
memory: 64Mi
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from sitewhere-keycloak-token-bc7lw (ro)
Containers:
keycloak:
Container ID:
Image: docker.io/jboss/keycloak:12.0.4
Image ID:
Ports: 8080/TCP, 8443/TCP, 9990/TCP
Host Ports: 0/TCP, 0/TCP, 0/TCP
State: Waiting
Reason: PodInitializing
Ready: False
Restart Count: 0
Liveness: http-get http://:http/auth/ delay=300s timeout=5s period=10s #success=1 #failure=3
Readiness: http-get http://:http/auth/realms/master delay=30s timeout=1s period=10s #success=1 #failure=3
Environment:
DB_VENDOR: postgres
DB_ADDR: sitewhere-postgresql
DB_PORT: 5432
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: <set to the key 'postgresql-password' in secret 'sitewhere-postgresql'> Optional: false
KEYCLOAK_USER: sitewhere
KEYCLOAK_PASSWORD: sitewhere
Mounts:
/opt/jboss/startup-scripts/keycloak.cli from startup (ro,path="keycloak.cli")
/var/run/secrets/kubernetes.io/serviceaccount from sitewhere-keycloak-token-bc7lw (ro)
Conditions:
Type Status
Initialized False
Ready False
ContainersReady False
PodScheduled True
Volumes:
startup:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: sitewhere-keycloak-startup
Optional: false
sitewhere-keycloak-token-bc7lw:
Type: Secret (a volume populated by a Secret)
SecretName: sitewhere-keycloak-token-bc7lw
Optional: false
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events: <none>
I am trying to deploy sitewhere using the helm chart. But 11 pods are failing with the following error:
Can anyone help me to solve this issue?