Closed jasperf closed 3 years ago
We do have the directory now and no longer try to create the directory , but somehow only index is added so we need to check this some more.
$ pwd
/tmp/hostpath-provisioner/smt-local/code-pv-claim
$ ls -la
total 12
drwxrwxrwx 2 root root 4096 Dec 7 06:57 .
drwxr-xr-x 5 root root 4096 Dec 7 05:02 ..
-rw-r--r-- 1 root root 1823 Dec 7 07:07 index.php
kubectl describe pvc code-pv-claim
Name: code-pv-claim
Namespace: smt-local
StorageClass: standard
Status: Bound
Volume: pvc-006f5c11-d486-407e-84f4-7550c1ef283b
Labels: type=code
Annotations: pv.kubernetes.io/bind-completed: yes
pv.kubernetes.io/bound-by-controller: yes
volume.beta.kubernetes.io/storage-provisioner: k8s.io/minikube-hostpath
Finalizers: [kubernetes.io/pvc-protection]
Capacity: 5Gi
Access Modes: RWO
VolumeMode: Filesystem
Mounted By: app-5777b58f95-7g824
app-5777b58f95-7wnpb
Events: <none>
initContainer can only run once as the next time it runs - and this also happens with replicas - it will fail as files are already there. So solution is to only run it once, run it as a regular deployment of a container or clone a different way.
Cloning of the repository
fails
When I ssh into the kube I see
which is ...odd