I tried installing jfrog artifactory using Helm charts. artifactory-0
pod is waiting indefinitely for container initialization.
I used this link https://hub.helm.sh/charts/jfrog/artifactory-oss to install Jfrog Artifactory.
I'm using kubernetes v1.14. On Premise VM, ESXI Hypervisor.
EDIT 02/Mar
PV:
volume-artifactory-0 10Gi RWO Retain Bound default/artifactory-volume-artifactory-oss-artifactory-0 7m
volume-postgresql-0 10Gi RWO Retain Bound default/data-artifactory-oss-postgresql-0 5m38s
PVC:
artifactory-volume-artifactory-oss-artifactory-0 Bound volume-artifactory-0 10Gi RWO 9m19s
data-artifactory-oss-postgresql-0 Bound volume-postgresql-0 10Gi RWO 9m3s
EDIT 04/mar
StorageClass:
NAME PROVISIONER AGE
managed-nfs-storage fuseim.pri/ifs 132d
standard kubernetes.io/no-provisioner 156d
EDIT 06/mar
PVC (06/mar):
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
artifactory-volume-artifactory-oss-artifactory-0 Pending standard 24s
data-artifactory-oss-postgresql-0 Pending standard 6s
EDIT 09/03
PVC:
artifactory-volume-artifactory-oss-artifactory-0 Bound pvc-3804670b-3e13-4162-bbf9-bb945c45ddbd 10Gi RWO managed-nfs-storage 16m
data-artifactory-oss-postgresql-0 Bound pvc-18a744d3-3f3d-4a36-b8bc-7ecc593fc04d 10Gi RWO managed-nfs-storage 16m
s
kubectl get events --sort-by='.lastTimestamp':
2m7s Normal Created pod/artifactory-oss-artifactory-0 Created container wait-for-db
2m7s Normal Started pod/artifactory-oss-artifactory-0 Started container wait-for-db
100s Normal Started pod/artifactory-oss-postgresql-0 Started container init-chmod-data
100s Normal Created pod/artifactory-oss-postgresql-0 Created container init-chmod-data
100s Normal Pulled pod/artifactory-oss-postgresql-0 Successfully pulled image "docker.io/bitnami/minideb:stretch"
72s Warning BackOff pod/artifactory-oss-postgresql-0 Back-off restarting failed container
62s Warning VolumeFailedDelete persistentvolume/pvc-97666796-67b0-4152-b801-2cd84dcbc106 remove /persistentvolumes/default-artifactory-volume-artifactory-oss-artifactory-0-pvc-97666796-67b0-4152-b801-2cd84dcbc106/bootstrap/access/etc/security/join.key: permission denied
58s Normal Pulling pod/artifactory-oss-postgresql-0 Pulling image "docker.io/bitnami/minideb:stretch"
54s Warning Unhealthy pod/artifactory-oss-artifactory-nginx-54b677c764-2lpws Readiness probe failed: Get http://192.168.233.227:80/router/api/v1/system/health: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
51s Warning Unhealthy pod/artifactory-oss-artifactory-nginx-54b677c764-2lpws Liveness probe failed: Get http://192.168.233.227:80/router/api/v1/system/health: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
42s Warning VolumeFailedDelete persistentvolume/pvc-f2b1461f-35b5-4199-9395-6b0b4ff7ea05 remove /persistentvolumes/default-artifactory-volume-artifactory-oss-artifactory-0-pvc-f2b1461f-35b5-4199-9395-6b0b4ff7ea05/bootstrap/access/etc/security/join.key: permission denied
kubectl get pods:
NAME READY STATUS RESTARTS AGE
artifactory-oss-artifactory-0 0/1 Init:3/5 0 12m
artifactory-oss-artifactory-nginx-54b677c764-2lpws 0/1 Running 6 12m
artifactory-oss-postgresql-0 0/1 Init:CrashLoopBackOff 7 12m
"FailedBinding: no persistent volumes available for this claim and no storage class is set".
I see you have two StorageClass
configured but none is set as default.
StorageClass
you want to become the default on which the artifactory-oss to be deployed (replacing <your-class-name>
with your SC.kubectl patch storageclass <your-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
Learn more on Change the default StorageClass Page .
Also I strongly suggest to:
Check if those StorageClass
are correctly configured.
standard
is correct following the StorageClasses DocsEDIT: After my suggestion above, we started to see different problems in your environment, so in order to help you I'll give you a few troubleshooting pages so you can test the components of your environment:
In your logs I see you are trying to set the NFS Storage, so I recommend:
First, try setting the local storage as default
and deploying there, if everything works, you will know the problem is on your NFS settings.
How to do NFS with Kubernetes : follow this procedures to set up deploy a simpler helm chard, so you can be sure your NFS is correctly configured. Learn more here: Storage Classes
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.