Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Installation #5

Open
sdavid63 opened this issue Feb 25, 2022 · 2 comments
Open

Installation #5

sdavid63 opened this issue Feb 25, 2022 · 2 comments

Comments

@sdavid63
Copy link

Hello,
I'm new with Kubernetes and i try to install your chirpstack-helm-chart on my OVH Managed Kubernetes Service (k8s 1.22.2-2) for testing purpose but it looks like the result is not what it should be.

What I'm doing wrong ?

sdavid@ubv8-r2d2:~/chirpstack-helm-chart$ helm install chirpstack .

WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/sdavid/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/sdavid/.kube/config
NAME: chirpstack
LAST DEPLOYED: Fri Feb 25 12:17:47 2022
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None

sdavid@ubv8-r2d2:~/chirpstack-helm-chart$ kubectl get pods

NAME READY STATUS RESTARTS AGE
chirpstack-as-8b47c5476-f9tld 1/1 Running 0 48s
chirpstack-mosquitto-0 1/1 Running 0 47s
chirpstack-ns-659d84bd95-84f66 1/1 Running 0 48s
chirpstack-pgsql-0 0/1 Pending 0 47s
chirpstack-redis-0 0/1 Pending 0 47s
chirpstack-redis-exporter-5d446b8c5f-jsw4g 1/1 Running 0 48s

sdavid@ubv8-r2d2:~/chirpstack-helm-chart$ kubectl get services

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
chirpstack-chirpstack-as ClusterIP 10.3.76.6 8080/TCP,8001/TCP,8003/TCP 93s
chirpstack-mosquitto ClusterIP 10.3.126.153 1883/TCP 93s
chirpstack-ns ClusterIP 10.3.197.88 8000/TCP 93s
chirpstack-pgsql ClusterIP 10.3.33.121 5432/TCP 93s
chirpstack-redis ClusterIP 10.3.129.238 6379/TCP 93s
chirpstack-redis-exporter ClusterIP 10.3.240.17 9121/TCP 93s
kubernetes ClusterIP 10.3.0.1 443/TCP 15m

sdavid@ubv8-r2d2:~/chirpstack-helm-chart$ kubectl get pvc

NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
pgsql-pvc-chirpstack-pgsql-0 Pending longhorn 2m55s
redis-pvc-chirpstack-redis-0 Pending longhorn 2m55s

sdavid@ubv8-r2d2:~/chirpstack-helm-chart$ helm list

WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/sdavid/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/sdavid/.kube/config
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
chirpstack default 1 2022-02-25 12:17:47.073384413 +0100 CET deployed chirpstack-0.6.0 1.16.0

Thank you

@sdavid63
Copy link
Author

sdavid@ubv8-r2d2:~/chirpstack-helm-chart$ kubectl describe pods chirpstack-redis
Name: chirpstack-redis-0
Namespace: default
Priority: 0
Node:
Labels: app=redis
controller-revision-hash=chirpstack-redis-69d4548d4f
release=chirpstack
statefulset.kubernetes.io/pod-name=chirpstack-redis-0
Annotations:
Status: Pending
IP:
IPs:
Controlled By: StatefulSet/chirpstack-redis
Containers:
redis:
Image: redis:6.0.9
Port: 6379/TCP
Host Port: 0/TCP
Environment:
Mounts:
/data from redis-pvc (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-wvvbp (ro)
Conditions:
Type Status
PodScheduled False
Volumes:
redis-pvc:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: redis-pvc-chirpstack-redis-0
ReadOnly: false
kube-api-access-wvvbp:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional:
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message


Warning FailedScheduling 3m34s (x173 over 174m) default-scheduler 0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims.

@liangyuanpeng
Copy link
Owner

Note: Use longhorn of storageClass by default.

I Think you should change storageClass to your storageClass.

Use:

helm install chirpstack . --set redis.spec. volumeClaimTemplates.spec.storageClassName={Your StoragecClass} --set redis.spec.volumeClaimTemplates.spec.storageClassName{Your StoragecClass} 

Check for your storageClass:

kubectl get sc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants